-
AuthorPosts
-
December 7, 2011 at 8:34 pm #171580
I would like the latest articles category on the Home Page to open on a new page when the Read More or Headline link is selected. Currently it jumps back to the top of page when expanding the article. Bad ui. As an alternative I would be ok with the article expanding if it didn’t jump to the slide show and stayed on the expanded article.
I believe the article ID is fixed in the ReadMore for the home page and I don’t know how to fix this. Please help.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 7, 2011 at 8:37 pm #428529Are you referring to your “Featured Articles” section?
I am not seeing a “Latest Articles” category on your Home Page.
December 7, 2011 at 8:42 pm #428531Yes, Featured articles on home page.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 7, 2011 at 8:58 pm #428534<em>@teleactive1 287718 wrote:</em><blockquote>Yes, Featured articles on home page.</blockquote>
Okay, so when I click on “Read More” for the first article, it goes to that article – albeit on same browser window page/tab.So what you want is for the article to open in a separate window – correct?
December 7, 2011 at 10:35 pm #428553Yes, Not a new tab but yes a separate window with just the article and site navigation.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 7, 2011 at 11:40 pm #428557To incorporate this behavior, for example, I believe the following php code is what needs to be located and modified for the relative content items . . . and I think the file would be componentscom_contentviewsfrontpagetmpldefault_item.php
Before Edit
<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
After Edit
<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>" target="_blank" >
NOTE:
(i) This being a core Joomla! file it is suggested to use the template override technique as documented in http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core.December 8, 2011 at 12:39 am #428566<em>@TomC 287750 wrote:</em><blockquote>To incorporate this behavior, for example, I believe the following php code is what needs to be located and modified for the relative content items . . . and I think the file would be componentscom_contentviewsfrontpagetmpldefault_item.php
Before Edit
<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>">
After Edit
<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->escape($this->item->params->get('pageclass_sfx')); ?>" target="_blank" >
NOTE:
(i) This being a core Joomla! file it is suggested to use the template override technique as documented in http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core.</blockquote>Could you review the path.
The template goes like this: componentscom_contentviewsfeaturedtmpldefault_item.php the difference is featured not frontpage. I pulled the file but the code you provided above is not in the file.Other options in the file path are
/archive
/article
/categories
/category
/featured
/formPlease advise
Thanks
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 8, 2011 at 4:33 am #428591<em>@teleactive1 287763 wrote:</em><blockquote>
Other options in the file path are
/article
/categories
/category
/featured
</blockquote>Look through each of those and see if you can find code similar to the suggestion I provided.
I would recommend making a back-up copy of each file – just in case.
A little trial-and-error can go a long way.
December 8, 2011 at 1:47 pm #428710I found the code in componentscom_contentviewsarticletmpldefault.php
I changed the code and it made no difference.
Also I do not understand the
NOTE:
(i) This being a core Joomla! file it is suggested to use the template override technique as documented in http://docs.joomla.org/How_to_overri…e_Joomla!_core.I review this code and I’m not sure how to execute this.
I need a solution for this problem.
I would be open to some sort of solution where the article expanded but it did not jump back to the top of the page if we can not get the target blank code working.
Thanks,
KevinTomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 8, 2011 at 4:33 pm #428737I do not understand the “jumping to the top of the page” part . . . for when I clicked on “Read More” for the first article on your Home Page, it merely brought me to that article. How it is supposed to display?
December 8, 2011 at 4:46 pm #428743I don’t know how to make it more clear.
I want the article to appear by itself on a new page in the site.So far your solutions haven’t worked to open the article on a new or blank page.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 8, 2011 at 4:52 pm #428744Kevin:
This is what you wrote previously . . . .<em>@teleactive1 287932 wrote:</em><blockquote>
I would be open to some sort of solution where the article expanded but it did not jump back to the top of the page if we can not get the target blank code working.Thanks,
Kevin</blockquote>Therefore, I was trying to get some additional clarification from you s to what you feel it is currently doing as opposed to what you said you were “open” to above – as I am not seeing this “jump” that you previously referred to.
Haven’t given up on the “open to a new window” issue, don’t worry.
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
December 13, 2011 at 8:55 pm #429526<em>@teleactive1 287976 wrote:</em><blockquote>So far your solutions haven’t worked to open the article on a new or blank page.</blockquote>
If I may jump in – your problem has been solved in a duplicate thread you started – http://goo.gl/tFCnr
The problem is you are confusing your CATEGORIES. Two of them, for instance, are called “NEWS” – and one of them is the PARENT of the LATEST and FEATURED categories …which, by design, will always appear on the front page.
The easiest way to spot this is to look at the URL’s when you click on a article.
In the articles (category:news) that are appearing on the front page, you’ll see:
http://www.aadvancedhearingcare.com/77-news1540828908/179-professional-organizations-respondIn articles (category:news) that will open in a separate page, you’ll see:
http://www.aadvancedhearingcare.com/news/177-bhi-warns-against-do-it-yourself-hearing-aidsOpen your CATEGORY and for an alias of “77-news1540828908″ – and I’ll bet you even have it ‘undefined.’
We would also appreciate you not posting duplicate threads for the same issue.
Thank you.
Have fun! -
AuthorPosts
This topic contains 13 replies, has 3 voices, and was last updated by John Wesley Brett 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum