How do I redefine template HU files? - Forum | JoomShaper
Staff replied Helix Framework

How do I redefine template HU files?

Asked by Dmitry Goncharov 4 years ago Last activity 4 years ago

For example, the output file of social icons. Since it is not possible to install your own social networks for a blog, you have to edit the file social_share.php , when updating, it is overwritten. How do I redefine it?

And how to override this file for each copy of the template? When it is necessary to make different Helix Ultimate 2 templates and different overrides for different pages.

10 replies

Paul Frankowski Senior Staff
4 years ago · edited

Hi Dmitry,

  1. but you can install extra social share plugin and use it inside articles, just check on JED for ready solutions.
  2. Sorry but as I know, file social_share.php - cannot be overriden in safe way.
  3. You can also use social share code inside in HDAnycode module, published in content-bottom position and assigned to Articles only by AMM extension.

Think like a mechanic, out the box.

Dmitry Goncharov Asked this

social_share.php was as an example. And other parameters?

For example, how to make different custom.css for Helix Ultimate 2 copies?

Pavel

Приветствую. Не слишком ли сложно вы придумали? Можно просто создать несколько переопределений шаблонов статьи и вставить туда ваш собственный скрипт или html код с социальными иконками.

Paul Frankowski Senior Staff

you can create second.css and use it on 2nd template copy only.

Dmitry Goncharov Asked this

you can create second.css and use it on 2nd template copy only.

Hm... and how does it connect? Automatically?

Dmitry Goncharov Asked this

Можно просто создать несколько переопределений шаблонов статьи и вставить туда ваш собственный скрипт или html код с социальными иконками.

Как делаются эти переопределения сейчас? В первой версии, насколько я помню, нельзя было переопределять шаблон. Он сам был как переопределение по факту.

Pavel

Если вы хотите переопределить файл, уже переопределенный в Helix с именем по умолчанию скопируйте файл отсюда plugins/system/helixultimate/overrides/ сюда templates/shaper_helixultimate/overrides/ (со всей остальной структурой).

Если вы хотите переопределить уже переопределенный файл в Helix и переименовать его, скопируйте отсюда plugins/system/helixultimate/overrides/ в стандартную папку переопределений joomla и переименуйте (теоретически должно работать, не проверял).

Если вы хотите переопределить стандартный файл joomla используйте стандартные возможности переопределения, но обязательно переименуйте файл

Dmitry Goncharov Asked this

Pavel

Спасибо. Попробую

Dmitry Goncharov Asked this

you can create second.css and use it on 2nd template copy only.

So how does it work? A copy of Helix Ultimate will automatically see second.css, and custom.css will not take into account and vice versa?

And if you make a third copy of the template? Is there a name for the third.css file?

Paul Frankowski Senior Staff

read tip from Helix Ultimate 1.x documenation, How to ... section.

Log in to reply.