Internal Links

0
Hi Germinal:

How can I create internal links within the component without hardcoding html? For example, in a review I might write that Germinal Camps wrote X song. How can I link to your artist profile? I found a few Joomla components and plugins that do this but only in Joomla content. Have you tried this yourself?

Accepted Answer

Tuesday, September 02 2014, 11:50 PM - #Permalink
0
Just in case someone is looking into this. I just solve the internal links problem using the sitelinkx plugin and turning muscol content into joomla content (or at least faking it). The sitelinkx plugin turns keywords (for example, The Beatles) into links to whatever site you want. Those links have to be added manually, but whatever, better than not having links at all. Now, sitelinks only works for Joomla articles, so I fake muscol content. I do this for album reviews and artists bios by coding this way:


<?php $review = JHtml::_('content.prepare', $this->album->review);
if($this->album->review != ""){ ?>
...
<article>
<?php echo $review; ?>
</article>
...
<?php } ?>


The content.prepare renders muscol content as joomla content and sitelinkxs works :)
The reply is currently minimized Show
Responses (4)
  • Accepted Answer

    Friday, September 27 2013, 03:02 AM - #Permalink
    0
    Thanks to you for accepting the suggestion :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 25 2013, 06:19 PM - #Permalink
    0
    I see. we don't currently have such a plugin (for JCE for example), I'm afraid.
    I will look into it and consider to add it in a future version
    thanks for the feedback!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 24 2013, 10:58 PM - #Permalink
    0
    Thanks. What I'm asking is if there's a way to add links through the editor, either tiny or JCE. It is really cumbersome to go through every review and link everything (write html, copy link to artist or album, paste). It would be easier to just link like if it was a Joomla content article with a drop-down menu as in JCE. Several components have created plugins to achieve this. Have you given any thought to this? There are a few extension that really make it easy to link inside a component like http://extensions.joomla.org/extensions/structure-a-navigation/content-links/427 Problem is that it needs a customized plugin to make it work and as I mentioned many components have added theirs to make it work.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 24 2013, 10:55 AM - #Permalink
    0
    the internal links always look like:

    index.php?option=com_muscol&view=artist&id=23

    is that what you're asking?
    The reply is currently minimized Show
Your Reply