Page 1 of 1

Article is opened on a new page

Posted: 02 Dec 2008, 13:02
by akerman
Hi,

this is a basic question, but somehow the answer always seems to elude me...

In the component, when clicking the link to the specific article in a category, the article opens up in a new contentpane. One that does not have any module positions filled.

So all the modules I have visible in the component (mainmenu), all the way down to category view, vanish when the article is opened.

This is of course caused by a change in the URL.

1. Category view
/index.php?option=com_phocadocumentation&view=category&id=1217:emerchantilismdemocategory&Itemid=54

2. Article view
index.php?option=com_content&view=article&catid=1217:emerchantilismdemocategory&id=68:black1modulestyleemerchantilism


How do I activate modules on this page or rather how do I make the component open the artice in the active contentpane? That is, with the correct URL?

Maybe the PhocaDocs should have its own Content (/html directory) layout, separated from Joomla?
Could also open up for more specific styling (like 2 or 3 columns, other date/author presentations ...) :wink:

Regards
Akerman

Re: Article is opened on a new page

Posted: 02 Dec 2008, 18:26
by Jan
Hi, yes you are right.... Phoca Documentation is only a "link" component, so it doesn't solve and doesn't manipulate with articles, it only shows sections and categories and then links to articles (these links are not menu links so it will be displayed this way: component/content/article/

so maybe we should add the following code:

.'&Itemid='. JRequest::getVar('Itemid', 1, 'get', 'int') into all links to get some itemid (to get itemid for possible settings, but don't know if there can be some conflict between itemid from Phoca Download and the same itemid in article)

Jan

Re: Article is opened on a new page

Posted: 02 Dec 2008, 23:43
by akerman
Hi,

Ok, I'm pretty sure you have a better understanding then I do, about any issues that could arise from such solution. However, I think it is a little important that the consistency of the site does not 'break' so to speak.

The link should somehow lead back to the true 'menu' position of the content, otherwise any supporting texts, functions in modules or similar things that supports the content/article on its intended page layout, is lost.

This maybe isn't a major issue, but I feel it could possibly become a weakness in the component. Especially in a little more complex site.

Regards
Akerman

Re: Article is opened on a new page

Posted: 03 Dec 2008, 15:28
by Jan
ok, I will try to play with the itemdid and will see if there is a way to 'solve' it...

Jan

Re: Article is opened on a new page

Posted: 04 Dec 2008, 20:14
by akerman
Jan,

I've worked some more with PhDocs, and I would like to revise my thoughts above. Hopefully to something more simple.

The Article needs only to open up on the same layout as the component has. No need to point to other places.
This probably mean that you can set the page to something like this:

/index.php?option=com_phocadocumentation&view=article&catid=1217:emerchantilismdemocategory&id=68:black1modulestyleemerchantilism

And this URL structure would be valid for ALL articles.

...and I suppose we're back in the loop about the /html/.. directory with 'content views'... in order to do that.
(I'm thinking while writing...)

Anyway, just wanted to make clear that the Article page 'only' needs to open up under the component, so all supporting texts and graphic around the component don't disappear.

Regards
Akerman

Re: Article is opened on a new page

Posted: 05 Dec 2008, 23:16
by Jan
The problem with article and Itemid is here if e.g. SEO is enabled...

e.g. there is only one article but different links to the article (created by Phoca Documentation, created by menu link, created by e.g. search function, created by e.g. article list, etc... ) so this all need to be tested on the site...

SEO + Menu links can cause a lot of problems because of different links, different behaviours (component, plugin - no itemid, module - no itemid, ...)