test
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • Kevin Collins Friend
    #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.

    Site http://www.aadvancedhearingcare.com/

    TomC Moderator
    #428529

    Are you referring to your “Featured Articles” section?

    I am not seeing a “Latest Articles” category on your Home Page.

    Kevin Collins Friend
    #428531

    Yes, Featured articles on home page.

    TomC Moderator
    #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?

    Kevin Collins Friend
    #428553

    Yes, Not a new tab but yes a separate window with just the article and site navigation.

    TomC Moderator
    #428557

    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.

    Kevin Collins Friend
    #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
    /form

    Please advise

    Thanks

    TomC Moderator
    #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.

    Kevin Collins Friend
    #428710

    I 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,
    Kevin

    TomC Moderator
    #428737

    I 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?

    Kevin Collins Friend
    #428743

    I 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 Moderator
    #428744

    Kevin:
    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 Moderator
    #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-respond

    In 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-aids

    Open 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!

Viewing 13 posts - 1 through 13 (of 13 total)

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