Add anchor to "read more"-links

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

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.
Locked
fidelityhh
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Feb 23, 2010 1:05 am

Add anchor to "read more"-links

Post by fidelityhh » Tue Feb 23, 2010 1:12 am

Hi,

I've added a named anchor in my Joomla 1.5.15 site. I figured out how to append the "#contentanchor"-string to my menu links but I can't find a working solution to add the same string to my read more links.

Furthermore, I use the mod_newsflash module to show intros of some articles (followed by the read more link) and I'm not completely sure if I need to change something in the module code or somewhere in joomla core.

Any ideas would be greatly appreciated!

Thanks in advance,

Jan

User avatar
Ghonjez
Joomla! Exemplar
Joomla! Exemplar
Posts: 8770
Joined: Sat Oct 18, 2008 3:02 am
Location: Mars
Contact:

Re: Add anchor to "read more"-links

Post by Ghonjez » Wed Feb 24, 2010 8:37 am

Hi...

Do you mean that you want to change Read More text with your text ?
If so then visit this discussion :
- http://forum.joomla.org/viewtopic.php?f=428&t=396074
- http://forum.joomla.org/viewtopic.php?f=428&t=455065

or use extensions : Alternative Readmore link >>> http://extensions.joomla.org/extensions ... links/5279

welcome to Joomla forum :)

fidelityhh
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Feb 23, 2010 1:05 am

Re: Add anchor to "read more"-links

Post by fidelityhh » Mon Mar 01, 2010 6:54 pm

Hi Ghonjez,

thanks for your answer!

Unfortunately I'm still looking for the right solution. Maybe I described the problem not detailed enough.

I don't want to change the text of the read more link, nor use an image or anything else (like the alternative readmore extension offers).

What I want is to "hardcode" a named anchor after the link, e.g. "/newsarticle1.html" (SEF turned on) changes to "/newsarticle1.html#anchor".

I figured out how to do that for mod_mainmenu but I still have no clue how to do that for the read more links.

Anyone an idea?

Thanks a lot... regards, Jan

Sakaane
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Sat Feb 22, 2014 8:19 am

Re: Add anchor to "read more"-links

Post by Sakaane » Sat Feb 28, 2015 7:27 pm

I am looking for an answer to this question too, but in Joomla 3.x.

The way "Read More" works by default doesn't make sense to me. A user comes to the website, reads the introduction to an article, and then clicks "Read More". A new page loads that shows the full article, and the user has to scroll down to figure out where the end of the introduction is in order to continue reading.

I understand there is an article parameter to hide the intro text, but this means anyone accessing the article's URL directly never sees the introduction text, which is not desirable either.

For example:

http://incyanity.net/ - The most recent featured article is "realMyst". After the introduction, click "Read More". The read more URL is:
http://incyanity.net/index.php/book-of-days/34-realmyst

I would prefer the read more URL to be something like:
http://incyanity.net/index.php/book-of- ... t#readmore

Correspondingly, the "read more" code in the article would have to be changed to something like:

Code: Select all

<a name="readmore"></a><hr id="system-readmore" />
That way, when someone clicks "Read More" they are automatically jumped down the page to where they can continue reading, whereas someone who accesses the article's URL without the anchor will still be presented with the full article including introduction.

Can this be achieved via overrides?


Locked

Return to “General Questions/New to Joomla! 1.5”