Joomla adjustment found out more link to blog format id

I have a component with write-ups developed with the displaynews plugin. If I click the found out more of the write-ups they most likely to the complete write-up. Yet I desire them to head to a group blog format and also scroll to the proper write-up (making use of the id).

Any kind of suggestion just how this functions? I do not also recognize just how to transform the link of the found out more.

0
2019-12-02 02:59:00
Source Share
Answers: 1

Not very easy yet i want to offer you some excellent beginning factors.

  1. Learn more about "Template override". It suggests you can transform the HTML result of part without hacking Joomla core code.

  2. Utilize what found out at 1. so you can place a support near every write-up in your blog site format. Hint : you will need to transform documents :

/ layouts/ [your layout ]/ html/com _ content/category/blog _ item.php

If it is not there, create it by replicating

/ components/com _ content/views/category/ tmpl/blog _ item.php

Let is claim the support you place near every write-up is something link

<a id="article_<?php echo $this->item->id" ?>" />
  1. Depending on just how displaynews plugin (or component?) is coded, you can utilize what found out at factor 1. or you will need to hack the plugin (or component?) code itself. You can transform the readmore link from

index.php?option = com_content & sight = write-up & id = XX

to

index.php?option = com_content & sight = group & format = blog site & id = CC #article _ XX

where CC is the CATEGORY id, while XX is the ARTICLE id

0
2019-12-03 00:52:51
Source