Article is opened on a new page

Phoca Documentation - creating documentation in Joomla! CMS
User avatar
akerman
Phoca Member
Phoca Member
Posts: 42
Joined: 07 Jul 2008, 18:42
Location: Sweden - Stockholm
Contact:

Article is opened on a new page

Post 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
Last edited by akerman on 04 Dec 2008, 11:22, edited 2 times in total.
http://www.AkermansCove.com - CMS Addons! & Royalty Free Images
http://www.InfoClip.se - Swedish site for Practical knowledge.
Ubuntu LAMP / Joomla 1.5.8 / VM 1.1.2 Stable / JoomFish / Mosets Tree
/ Joomsuite / Phoca / JoomGallery /
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Article is opened on a new page

Post 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
If you find Phoca extensions useful, please support the project
User avatar
akerman
Phoca Member
Phoca Member
Posts: 42
Joined: 07 Jul 2008, 18:42
Location: Sweden - Stockholm
Contact:

Re: Article is opened on a new page

Post 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
http://www.AkermansCove.com - CMS Addons! & Royalty Free Images
http://www.InfoClip.se - Swedish site for Practical knowledge.
Ubuntu LAMP / Joomla 1.5.8 / VM 1.1.2 Stable / JoomFish / Mosets Tree
/ Joomsuite / Phoca / JoomGallery /
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Article is opened on a new page

Post by Jan »

ok, I will try to play with the itemdid and will see if there is a way to 'solve' it...

Jan
If you find Phoca extensions useful, please support the project
User avatar
akerman
Phoca Member
Phoca Member
Posts: 42
Joined: 07 Jul 2008, 18:42
Location: Sweden - Stockholm
Contact:

Re: Article is opened on a new page

Post 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
http://www.AkermansCove.com - CMS Addons! & Royalty Free Images
http://www.InfoClip.se - Swedish site for Practical knowledge.
Ubuntu LAMP / Joomla 1.5.8 / VM 1.1.2 Stable / JoomFish / Mosets Tree
/ Joomsuite / Phoca / JoomGallery /
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Article is opened on a new page

Post 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, ...)
If you find Phoca extensions useful, please support the project
Post Reply