Can i have another publication, but still open articles from Publication 1? I am setting {{ set_publication identifier="1" }} in the Publication 2 article's template, but it does not work.
Hey sorry for the late reply - yes it is possible. The question is how do you navigate - point to article from another publication; for example in list_articles list, you can add ignore_publication="true" and the list will be able to show articles from another pub.
Url context is crucial - in order to show some article, url of article page needs to be
As article numbers are unique through whole newscoop instance, you can simply say {{ set_article number="xyz" }} and url will be automatically set to correct pub, lang, issue, section.
Hope this helps.. if not, please describe your use case.
-- Ljuba Rankovic Senior Front End Developer, Sourcefabric ljuba.rankovic@sourcefabric.org
Thank your for your helpfull reply. The idea is that it works on article list or in list, in generally, the problem comes whet i access the article clicking on the URL generated in that list. Here is my case:
And it works like a charm with {{ list_sections }} or {{ list_articles }} lists. The problesm appears when i access a link for an article from that list. For example: http://m.example.com/lng/issue/section/artid/article-title.htm It give me the output of error page, and not the article.tpl structure.
Okay can you paste your template here? Do you use {{ url options="article" }} or {{ uri options="article" }} ? Your url still points to domain of pub 2 (which may happen when you son't use absolute paths) thus it is incorrect. If you used uri instead of url, then just change that.
-- Ljuba Rankovic Senior Front End Developer, Sourcefabric ljuba.rankovic@sourcefabric.org
This is the front_content_tabs.tpl, which is part of the front_content.tpl, which is part of the front.tpl (which starts with {{ set_publication identifier="1" }}):
Well generally link to article from both list_playlist_articles in first tab and list_articles in second tab is correct; might be that theme for second publication is not correctly setting article template. Do you have special theme for pub 2, or just symlink to theme of pub 1?
Also, why do you set publication param to 1? If you need same theme to run both publications, use symlink solution.
first, {{ $gimme->publication->site }} - if correctly set - should return url that you need, you don't need to force it to m.{{ ... }}; second, in the same line instead of {{ $gimme->section->name }} you need to use {{ $gimme->section->url_name }}
-- Ljuba Rankovic Senior Front End Developer, Sourcefabric ljuba.rankovic@sourcefabric.org