How do I Redefine Template HU Files? - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How do I Redefine Template HU Files?

Dmitry Goncharov

Dmitry Goncharov

Helix Framework 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.

0
10 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #38289

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.

0
Dmitry Goncharov
Dmitry Goncharov
Accepted Answer
4 years ago #38298

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

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

0
Pavel
Pavel
Accepted Answer
4 years ago #38301

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #38306

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

0
Dmitry Goncharov
Dmitry Goncharov
Accepted Answer
4 years ago #38310

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

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

0
Dmitry Goncharov
Dmitry Goncharov
Accepted Answer
4 years ago #38314

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

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

0
Pavel
Pavel
Accepted Answer
4 years ago #38321

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

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

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

0
Dmitry Goncharov
Dmitry Goncharov
Accepted Answer
4 years ago #38322

Pavel

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

0
Dmitry Goncharov
Dmitry Goncharov
Accepted Answer
4 years ago #38364

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?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #38416

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

0