The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 27 posts ] 
Author Message
PostPosted: Mon Jul 16, 2007 4:50 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
I beat my head against the wall all weekend trying to figure out what was wrong.  Undoing and then redoing.  I haven't seen this problem reported, but I also haven't hacked any core files, this is happening off of a clean install.

I'm using a set of 5 custom templates that I've built.  All are working to perfection on their own (and I love the new 1.5 template system, great work!), but I'm having one problem specifically with the  homepage.

On my homepage, I have the component content area piping in news items from my news section.  So, I've created a news section, a news category and then put in several news stories with read more breaks in them.  I marked 4 of them to appear on the frontpage.  They are appearing in my homepage template, with read more links and everything, BUT, when I click on the read more link, it insists on displaying the full text within that homepage template in the component area, instead of switching to the assigned template.

For my News section and category, I've created a new section within the site and when I go to this section, the news displays in the template I have assigned to that menu.  But clicking the read more links from the homepage, doesn't switch to that template where that article is residing.  It's pulling the article, but not the template assignment for the menu that that article is in. 

It will also not pull the default template.  For example, if I switch the default template to some other, non-homepage template and try this same thing, the content still loads in the homepage, so I'm certain its not a default template issue either.

I messed around with it all weekend and am going insane trying to figure out what is wrong.  I'm using the nightly build from this past Thursday (July 12).  I've not seen others mention this apparent bug, so I'm completely confused as to why I'm having this problem, and any help would be greatly appreciated.  If I have a read more link on stories on the homepage, but the stories are actually in another menu with another template assigned, why would it insist on loading it in the homepage template instead of switching to that section/category/article?


Top
 Profile  
 
PostPosted: Mon Jul 16, 2007 10:52 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
I've noticed that it doesn't seem to be calling the correct item ID or category ID of things on the homepage.  I currently have my site in SEF mode, so its rendering out the labels in the URL.

When I click on the read more of a news item on my homepage, the url is mysite.com/home/8-first-news-item
But, when I click on the read more of that same news item in the news section, the url is mysite.com/news/12-news/9-first-news-item

This give any clues?


Top
 Profile  
 
PostPosted: Tue Jul 17, 2007 5:24 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
I also tried it without SEF on to see if it was a problem with that, but no luck there either. 


Top
 Profile  
 
PostPosted: Wed Jul 18, 2007 3:09 am 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
After reading more on the previous release, this smells of an ItemID issue.  Is that the case?  With changes introduced in 1.0.12, the community seemed to get fired up in a thread in another board.  There is a hack there that fixes this, but I didn't see one for 1.5.  Anyone have a core hack that will return this functionality to me, that I can have read more links on my homepage that lead to the articles that will appear in their proper template? 


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 3:05 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3742
Location: NRW - Germany
Please be patient, we are discussing this issue and will decide on if and how to fix it between RC1 and RC2.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 3:19 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
Ok, cool.  So, "if" you decide to fix it, seems to imply that there is some sort of workaround that I could use.  Is that the case?  I can't imagine releasing 1.5 with the functionality as it is currently.  If there is a workaround that would prompt you to possibly not address this issue in RC1/2, can you briefly tell me what that workaround is?  Thanks for the reply, keep up the good work.  I'm very impressed with 1.5 so far.  excellent work! 


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 3:32 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Fri Sep 16, 2005 8:41 pm
Posts: 3742
Location: NRW - Germany
There is no workaround for this. The reason why we are not adding the correct itemID to the readmore by default is, that we can't securely determine the correct ItemID, which then crashes the whole system. We first have to discuss a solution for this, otherwise you really wont get happy, which is why we are discussing 'if' we are going to fix it or if we 'just' declare it a feature and leave it to defaulting to the frontpage design.

_________________
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 3:38 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
Gotcha.  That's pretty horrible functionality if that's how it is left, I seriously hope you come up with a solution.  Forcing things to load in the homepage template will work if you have a boring site with no other templates, but the minute you want to control the look of all the information on your site (and harness some of the new power in 1.5's template system), not being able to put relevant stories from other sections on the homepage is a major detractor.  Here's hoping you decide to address the issue.  Or hoping that a third-party component/module developer decides to pick it up and run with it.


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 4:30 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
I'm not sure you fully understand the way that it works...

The issue is: how to you determine what template to use for article views?

Imagine this scenario:
I have a section named section1 and in section1 is the category cat1.

I have three options on my menu - Home, which is the frontpage view and displays the articles in section1.  The home page has a special home page template assigned to it.

Then, I have Section Blog, which displays a blog view of the articles in section1.  It has another custom template assigned to it.

Finally, I have a standard category list, which displays a list of the articles in cat1.  This has a third custom template assigned to it.

So, if I click a read more link on the frontpage for an article that is in cat1, which template do I use to display that article in?

This is a very basic example of the challenges involved...

Right now, articles appear in the template of the page from which they were called.  This isn't a 'bug' per se, it is just how the system works.  In 1.0, I think it worked a little bit differently, but it was less predictable (IIRC) and there were more quirks.  Here, it is reliable, but seemingly less flexible.

So maybe some input would help the situation?  I have no authority over this decision, but creative ideas for the interface might help the developers in determining the best place to configure this.

One possibility I would put out there:
Source 1: Article parameters - you specify the template (or maybe an Itemid?) for the article in the article parameters.  Options for this parameter would be an Itemid or a template (whichever is decided) or 'Use Menu Item', in which case the template would depend on the calling menu item.  You could also add options for 'Category' or 'Section' so that an article would appear in the same template for its section.
Source 2: Menu item parameters - you can specify in a menu item in which template (or Itemid?) articles which are linked from that page are displayed.  The default would be the current menu item.

Source 2 would take precedence over source 1 so that the menu item can override the article settings.

Just some clarification of the issue and some thoughts.

Ian


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 4:32 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
And one of the points I was going to highlight was that merely adding an article to the frontpage doesn't change the template that is used to display it.  In the 1.0 system it may have done something like that because when a page was loaded, there was a routine that was called that would try to figure out what the Itemid was.

Now, an article can end up showing up in two different templates.  The template used depends on the page that it was called from.

Ian


Top
 Profile  
 
PostPosted: Thu Jul 19, 2007 4:36 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat May 13, 2006 5:50 pm
Posts: 98
Your idea about article parameters was exactly what I was thinking would be good as I was butting my head against the wall last weekend trying to figure out a solution to this. However, not being a programmer myself, I'm uncertain of the limitations or complexity of doing something like that.  But it seems like if you could assign templates to articles individually, or group them and assign as categories or sections, that would be pretty impressive and open up even MORE creative possibilities. 


Top
 Profile  
 
PostPosted: Mon Jul 23, 2007 2:48 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
I'm still not sure why you need so many templates, but anyway...

I've not used 1.0 much in a while.  You would probably be better off addressing your question to one of those forums.

Also, if you could provide a link to an example of where things are going wrong, that would be great!

Ian


Top
 Profile  
 
PostPosted: Mon Jul 23, 2007 8:47 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Feb 02, 2007 5:37 am
Posts: 65
ianmac wrote:
Source 1: Article parameters - you specify the template (or maybe an Itemid?) for the article in the article parameters.  Options for this parameter would be an Itemid or a template (whichever is decided) or 'Use Menu Item', in which case the template would depend on the calling menu item.  You could also add options for 'Category' or 'Section' so that an article would appear in the same template for its section.



I was hunting around for a solution for a site that needs to use different templates too.  I think this is a really great solution.  Especially with Cat's and Articles being able to inherit a template from a section override (and article from a Cat).


Top
 Profile  
 
PostPosted: Tue Jul 24, 2007 9:44 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15750
Moderator note: moving from Development 1.5 to New J1.5 Forum Section

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Tue Jul 24, 2007 1:19 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Dec 08, 2006 8:07 pm
Posts: 171
Location: Michigan, USA
plaine wrote:
Your idea about article parameters was exactly what I was thinking......


This would be a really great option for me (and my 5 Joomla sites!) as well. Individual content parameter options give us the flexibility to keep both me and my users happy.

Nicole


Top
 Profile  
 
PostPosted: Tue Jul 24, 2007 6:07 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Sep 11, 2005 1:34 am
Posts: 175
Ian's approach seems to be a sensible and logical solution to this problem, I have just started a new project using v1.5 rc1 and the ability to pass over ItemIds from readmore links was key in the project being feasible. Im now going to have to go back to Joomla! v1.

see post:
http://forum.joomla.org/index.php/topic,194182.0.html

Passing ItemIds and catIds allow for really nice advance templating. I hope this 'problem'/'feature' gets updated soon so I can then re-migrate over to v1.5 rc1.

Regards,

Jon


Top
 Profile  
 
PostPosted: Sun Aug 19, 2007 11:08 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed May 09, 2007 10:07 am
Posts: 298
Location: Rome
This problem there was in 1.012, too.

I fixed it reading  RobS reply @:

http://forum.joomla.org/index.php/topic ... #msg616739

now I'm on j!1.5 rc1 and I just wonder if a similar simple fix could be applied, too...

ricc.

_________________
http://www.unframe.com


Top
 Profile  
 
PostPosted: Mon Aug 20, 2007 5:00 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Sep 01, 2005 8:18 pm
Posts: 119
Location: Des Moines, Iowa
I too use multiple templates to build sites. In the simplest form, I usually use one template for the front page, and another for content. This allows me to have a much greater degree of layout for the front page.

Using the natively built in multiple template function allows for different sections and categories to have customized looks and feels.

With that said, rather than basing which template is shown based on the itemid, it seems like it would be much more intuitive to be able to assign which template is shown by selecting it in the parameters of the article.

I for the most part don't need the ability to show the same content in different templates and I'm not sure why anyone would.

_________________
Lance Thompson
CEO, Blue Sky Web Worx
http://www.BlueSkyWebWorx.com


Top
 Profile  
 
PostPosted: Mon Aug 20, 2007 6:39 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed May 09, 2007 10:07 am
Posts: 298
Location: Rome
lancert wrote:
I too use multiple templates to build sites. In the simplest form, I usually use one template for the front page, and another for content. This allows me to have a much greater degree of layout for the front page.

Using the natively built in multiple template function allows for different sections and categories to have customized looks and feels.

With that said, rather than basing which template is shown based on the itemid, it seems like it would be much more intuitive to be able to assign which template is shown by selecting it in the parameters of the article.

I for the most part don't need the ability to show the same content in different templates and I'm not sure why anyone would.


I think the frontpage is a world apart from content can be viewed inside the site...
frontpage has his unique caracteristics and needs.
And displaying  content into it should be an option, and not mandatory... I hope developers would take in account this fact, because CMS is for Content Management System and should give the possibility to manage such a basic and relevant  content  management feature.

I can see all the people here talking about template switching...
BUT I don't need to change template!!!  I need only to to switch off some -frontpage only- modules for content displaying.  If my frontpage is full of stuff, I want display content linkek from frontpage in a cleaner layout for a really basic example....
but actually it is not possible...

In my previous post there's a link to another thread where this problem was fixed in j!1.012, I succesfully and easily tested it. But now I can't in J!1.5...  I'm not a programmer I can only copy and paste a hack, but my answer is if it is possible that a simple working fix could not be applied to J!1.5, too? (considering I don't need to change template, but only to switch off some frontpage modules).

thanx

ricc.

_________________
http://www.unframe.com


Top
 Profile  
 
PostPosted: Wed Aug 22, 2007 1:51 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Aug 21, 2005 11:41 pm
Posts: 143
Location: UK
If I may just add to this discussion that this same issues also causes a URL problem.
Basically, the same article published on both the front page and in it's own section, will also have 2 different URL's - one path will show correctly, whilst the path taken from the front page link will have /home/ added to it.

I believe this is not good for referencing by either humans or search engines.
Please feel free to correct me if I have mis-understood.

- Vince

_________________
www.hostbaron.com - low price Joomla starter packages.

www.SpanishVilla.com - Buy, rent or sell a Spanish property.


Top
 Profile  
 
PostPosted: Wed Aug 22, 2007 2:58 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed May 09, 2007 10:07 am
Posts: 298
Location: Rome
Vince wrote:
If I may just add to this discussion that this same issues also causes a URL problem.
Basically, the same article published on both the front page and in it's own section, will also have 2 different URL's - one path will show correctly, whilst the path taken from the front page link will have /home/ added to it.

I believe this is not good for referencing by either humans or search engines.
Please feel free to correct me if I have mis-understood.

- Vince



if you try to link a category blog from a submenu of home main... breadcrumbs will  show home>>home>>category  :-\
I fixed it creating the link as an external link... with right path... it seems to work... for now

For the title/read more problem, I worked around disabling readmore and title links in frontpage, creating manually a read more link with the right link pointing to the article in its menu blog section page with some modules and left column off (finally!!),  and disabling intro text to not to show the manually created readmore link in the frontpage intro...  last, I copy intro text in the article because I deactivated intro text...
and at very last I disabled comments linking (yvcomment)  from frontpage... ( this fine plugin allows you to deactivate link and still shows number of comments... but this is not an issue for me... I prefer people read the whole article before commenting)

Clearly it's a workauround and its unconfortably not to have titles linked.... to create manually readmore link, and to copy the intro text in the article...  I'm still waiting some "hero" here like RobS (see my previous posts in this thread) who posts a hack like j!1.013 one.

_________________
http://www.unframe.com


Top
 Profile  
 
PostPosted: Mon Aug 27, 2007 1:19 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6927
Location: Nebraska
Jinx changed the Frontpage URLs on Sunday, August 26 - here are the SVN comments:
Quote:
Fixed frontpage duplicate content issues with readmore links. Read more links now redirect correctly.
Fixed issues with relative links in feeds, added xml:base tag to Atom and added relative to absolute link convertor to RSS.


Thanks Johan,
Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Mon Aug 27, 2007 1:33 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed May 09, 2007 10:07 am
Posts: 298
Location: Rome
nice work!  ;)

_________________
http://www.unframe.com


Top
 Profile  
 
PostPosted: Mon Aug 27, 2007 7:13 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Aug 21, 2005 11:41 pm
Posts: 143
Location: UK
Great.
Does that spell the end of the duplicate ID's issues, or are there any more?

Cheers,

- Vince

_________________
www.hostbaron.com - low price Joomla starter packages.

www.SpanishVilla.com - Buy, rent or sell a Spanish property.


Top
 Profile  
 
PostPosted: Mon Aug 27, 2007 7:39 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6927
Location: Nebraska
Vince -

I hope to see the internal Search improved. At this time, the search returns the URL for the home page + the article for any search results. Maybe they are planning on working on it still, or perhaps in v 1.6 we will see better results?

It would be a good idea to test the modules - latest news, most popular, etc., but from what I have seen, those look good. If you are aware of the issues, it would be a good time to download the nightly and test.

But, from the test I have done, things are looking very, very good.

Amy :)

PS - Of course, you will create multiple URLs IF you intentionally place an article in more than one menu item. That is not a design flaw but rather a decision one makes.

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Mon Aug 27, 2007 8:43 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Wed May 09, 2007 10:07 am
Posts: 298
Location: Rome
Amy,
I know I just asked -see my previous post- ... and in another separate thread... 

"if you try to link a category blog from a submenu of home main... breadcrumbs will  show home>>home>>category

link for the first home: http://www.mysite.com
link for the second home: http://www.mysite.com/home/section&nbsp; "

I really don't want a solution right now .. only to know if it could be a design issue related to duplicated id, and in this case if it is a known issue, or if I'm doing something terribly wrong creating a menu..

thanks very much!

ricc.

_________________
http://www.unframe.com


Top
 Profile  
 
PostPosted: Mon Aug 27, 2007 8:53 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 6927
Location: Nebraska
Hm. Yes, I have that issue with my breadcrumbs, as well. Truthfully, I look at it more as a "home page" URL issue. One way to work around it is by using .htaccess redirects. Can you PM me the link to your other open thread? We could continue discussing it in the other thread.

+++

I believe we can close this thread. Is there anyone who believes there is an outstanding issue - unrelated to the previous one rufuz raises - that still requires resolution? Or, are we done here?

Amy :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ] 



Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group