Discussions
Activity
Sign In
How it works
ljuba rankovic
Activity
Discussions
2
Comments
154
item count in list_sections / list_topics / list_articles
you can use {{ $gimme->current_list->count }} - it should work for any kind of list
Comment by
ljuba rankovic
June 2012
permalink
gallery
There is very similar article gallery in New Custodian, just the position is different - it is now placed in the top of article right-hand sidebar (you can of course change positions of elements through templates but would need to adjust the styling…
Comment by
ljuba rankovic
June 2012
permalink
The New Custodian
Hello Mark, New Custodian (are Rockstar) were developed with the idea to use new Newscoop 4.0 features - image renditions, featured article lists, related articles list etc. And this is why frontpage template is using featured articles list. We don…
Comment by
ljuba rankovic
June 2012
permalink
include image rendition conditional
Hi,in this case class applied to is created when variable $where has value 'author', and this value is forwarded from parent template (let's say article.tpl) to this included template like this{{ include file="img/img_600x400.tp…
Comment by
ljuba rankovic
June 2012
permalink
Topic Cloud / list all topics in an issue
Hi Thomas, try this approach from our Cookbook - http://en.flossmanuals.net/newscoop-3-cookbook-3-5-2/tag-clouds/
Comment by
ljuba rankovic
June 2012
permalink
include image rendition conditional
You can put placeholder images anywhere inside your theme's folder, for example /img. Accessing them is easy with {{ uri static_file="img/placeholder.jpg" }} Best, Ljuba On Monday, 11 June 2012, BAUMANN Thomas wrote: > Hi Ljuba,…
Comment by
ljuba rankovic
June 2012
permalink
include image rendition conditional
Hi,to check if rendition exists, you can use this {{ capture name="_img" assign="_img" }}{{ image rendition="articlebig" }} {{ $image->caption }…
Comment by
ljuba rankovic
June 2012
permalink
Newscoop 4.0 How to Insert a new image in my article
This is because you need to attach an image to article first; it can be uploaded directly to article, or assigned from media archive's existing images. You can do this in article edit screen right sidebar widget 'images'. After you at…
Comment by
ljuba rankovic
June 2012
permalink
How to update newscoop 3.5.X to newscoop 4
Reply to @kweb:in your Newscoop 4.0 instance, go to Configure/Themes, and then in theme management go to the tab with your publication's name; then in 'actions' dropdown menu next to the theme which is used by your publication choose …
Comment by
ljuba rankovic
May 2012
permalink
facebook like box don't show artical title
Send the link to some article so we can see what's wrong.
Comment by
ljuba rankovic
April 2012
permalink
facebook like box don't show artical title
You probably don't have Open graph meta tags in section of your pages; it should be somethnig like this: {{ if $gimme->article->defined }}{{* Open Graph protocol metatags for Facebook sharing *}} {{ list_article_images }} {{ /l…
Comment by
ljuba rankovic
April 2012
permalink
In section template, ignore issue for just one section
Hi, well for example, you can say {{ if $gimme->section->number == 7 }} {{ assign var="ignore" value="true" }} {{ else }} {{ assign var="ignore" value="false" }} {{ /if }} {{ list_articles ignore_issue…
Comment by
ljuba rankovic
February 2012
permalink
changing templates on the fly
but this is already in index.tpl, as this is the default template for current issue. so function should die and continue further down with index.tpl code, otherwise loads mobile/index.tpl
Comment by
ljuba rankovic
February 2012
permalink
changing templates on the fly
you can try with this (on top, before ) {{ dynamic }}{{ if isset($smarty.request.mobile) || isset($smarty.request.tablet) || isset($smarty.request.phone) || $gimme->browser->browser_working == "webkit" && …
Comment by
ljuba rankovic
February 2012
permalink
Pagination of lists and long articles
But it won't work on Newscoop 3.5.3, it uses smarty 3 functions, and Smarty 3 is used in Newscoop versions starting with 3.6.Consider upgrading to 4.0-beta2, it brings a tone of new features, or solve pagination differently (there is one examp…
Comment by
ljuba rankovic
January 2012
permalink
Pagination of lists and long articles
Pagination won't appear if it is not needed. Add sixth article and it should appear (list is limited to 5 results, only after that next and previous items exist)
Comment by
ljuba rankovic
January 2012
permalink
Pagination of lists and long articles
Wella) Do you have more than 5 articles there? b) in your page's source there is still this code what is it used for? check again if you have right code on right place
Comment by
ljuba rankovic
January 2012
permalink
Pagination of lists and long articles
hi, seems that you mixed few different pieces of code in one big mashup :) try this instead: {{ $gimme->section->name }} ({{ $gimme->issue->name }}) {{ list_articles length="5" }} {{ if ! $g…
Comment by
ljuba rankovic
January 2012
permalink
Pagination of lists and long articles
Hi, no, it requires smarty 3.
Comment by
ljuba rankovic
January 2012
permalink
[4.0] How to assign a var from php
Hi, instead of this {{php}} $this->assign('firstname', 'Doug'); {{/php}} you can use {{ assign var="firstname" value="Doug" }} and then later in template you can access it simply by {{ $firstname }}
Comment by
ljuba rankovic
January 2012
permalink
Pagination of lists and long articles
For creating paginated list of articles (being it list of articles inside section, or search results, or whatever), you better use this kosher code from here http://forum.sourcefabric.org/discussion/comment/14968#Comment_14968 (for example like this…
Comment by
ljuba rankovic
January 2012
permalink
[3.6] pagination for section page with page numbers?
Lately I use this code, and it works in 4.0 {{ $pages=ceil($gimme->current_list->count/5) }}{{ $curpage=intval($gimme->url->get_parameter($gimme->current_list_id())) }}{{ if $pages gt 1 }} {{ if $gimme->current_list->has_prev…
Comment by
ljuba rankovic
January 2012
permalink
full_text default size and font
It has nothnig to do with Newscoop, it's styling issue. Anyway, font tag shouldn't be used anymore, instead (if you really don't want to put your styles in separate css file) use {{ $gimme->article->deck }}
Comment by
ljuba rankovic
January 2012
permalink
full_text default size and font
Hi, check which class (or plain html tag like ) is used to show content of full_text field in your template, and assign appropriate style declaration to it in your css style.
Comment by
ljuba rankovic
January 2012
permalink
problem with jquery
Sorry, I wasn't clear enough - put like this:
Comment by
ljuba rankovic
January 2012
permalink
problem with jquery
Forgot to say, do the same for other files included this way, of course
Comment by
ljuba rankovic
January 2012
permalink
problem with jquery
Your Newscoop is 3.5.3, so {{ url static_file="relative/path/to/file" }}" won't work. Instead of this {{ url static_file='_js/jquery.mousewheel-3.0.4.pack.js' }} try this {{ include file="/templates/_js/jquery.mous…
Comment by
ljuba rankovic
January 2012
permalink
problem with jquery
But fancybox plugin and other files are not loaded, they don't exist in page source. where did you call these: ? Check if it is included in header or footer template
Comment by
ljuba rankovic
January 2012
permalink
problem with jquery
aha, ok.. it means that fancybox gallery will be triggered if your article has image attached with the number >= 3. Try to attach some more images to some article and see what happens
Comment by
ljuba rankovic
January 2012
permalink
problem with jquery
Hi,you should put ... tags around your image, and apply class that triggers fancybox, the one defined in the script.
Comment by
ljuba rankovic
January 2012
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Stop following
About
Username
ljuba rankovic
Joined
April 2010
Visits
0
Last Active
April 2016
Roles
Member
Posts
156
Friends
Followed by 1 person
My Badges
Total Points: 90
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339