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?
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
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:
The content.prepare renders muscol content as joomla content and sitelinkxs works
<?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
Responses (4)
-
Accepted Answer
-
Accepted Answer
0Thanks. 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. -
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »