RSS   Twitter   Copiny   Copiny
Нашел ошибку? 

Выдели фрагмент текста с ошибкой или неточностью и нажми Ctrl+Enter!

Переменные в шаблоне

Переменные, которые можно использовать в шаблоне Joomla

Получение названия текущего шаблона

<?php $this->template; ?>

Получение базового URL

<?php $this->baseurl; ?>

Получение Title страницы

<?php $this->title; ?>

Соответственно, если хотим установить Title для всех страниц вида «Имя сайта — Заголовок данной страницы», достаточно в шаблоне прописать следующее:

<?php $this->title = JFactory::getConfig()->getValue('sitename').' - '.$this->title; ?>

Удаление неиспользуемых JavaSript в шаблоне

Например, нужно исключить загрузку /media/system/js/mootools-core.js в шаблоне:

<?php unset($this->_scripts[$this->baseurl.'/media/system/js/mootools-core.js']); ?>

Установка своего значения для мета-тега generator

<?php $this->_generator = 'Мой генератор';?>

Текущая локализация

<?php $this->language; ?>

Текущий URL

<?php $this->base; ?>

Полный путь к файлу шаблона

<?php $this->_file; ?>

Получение параметра шаблона

<?php $this->params->get('Параметр'); ?>

Смотрите также:
Комментарии (47) Добавить комментарий
  • Ирина
    27 Мая 2013, 05:18
     ↑  0  ↓     ответ

    Спасибо! Хорошая статья!!!

  • Impulse
    23 Апреля 2014, 16:32
     ↑  +1  ↓     ответ

    <?php $this->title = JFactory::getConfig()->getValue('sitename').' - '.$this->title; ?>

    А как переписать ее в обратном направлении "Заголовок страницы - имя сайта"

    • Impulse
      23 Апреля 2014, 17:11
       ↑  -2  ↓     ответ

      или как лучше оставить только title, а название сайта удалить

        04 Июня 2014, 12:42
         ↑  0  ↓     ответ

        <?php $this->title = $this->title.' - '.JFactory::getConfig()->getValue('sitename'); ?>

        04 Июня 2014, 12:43
         ↑  -2  ↓     ответ

        С удаленным названием сайта:

        <?php $this->title = $this->title; ?>

      • Иван
        10 Октября 2017, 17:41
         ↑  0  ↓     ответ

        Если вообще не понимаешь что происходит - то лучше и не заниматься этим. Как можно такие вопросы задавать... Взять и поменять местами 2 переменные. Додуматься никак что ли? Ужас!

  • shoes including
    shoes including
    05 Марта 2017, 16:09
     ↑  0  ↓     ответ

    Its like you learn my mind! You seem to grasp a lot approximately this, like you

    wrote the guide in it or something. I think that you just

    could do with a few p.c. to drive the message home a bit,

    however instead of that, that is magnificent blog.

    An excellent read. I'll certainly be back.

  • seo services images
    seo services images
    05 Марта 2017, 16:28
     ↑  +1  ↓     ответ

    Great article! That is the kind of info that are supposed to be shared

    around the internet. Disgrace on Google for now not positioning this post higher!

    Come on over and talk over with my site . Thanks =)

  • The Easiest Way to Write an Essay
    The Easiest Way to Write an Essay
    19 Февраля 2018, 06:19
     ↑  0  ↓     ответ

    My coder is trying to convince me to move to .net from PHP.

    I have always disliked the idea because of the costs. But he's tryiong

    none the less. I've been using Movable-type on numerous

    websites for about a year and am worried about switching

    to another platform. I have heard fantastic things about

    Is there a way I can import all my wordpress content into

    it? Any help would be really appreciated!

  • Assignment Help
    Assignment Help
    19 Февраля 2018, 07:40
     ↑  0  ↓     ответ

    Really no matter if someone doesn't know after that its up to

    other people that they will assist, so here it takes place.

  • domino y hosting
    domino y hosting
    21 Февраля 2018, 02:53
     ↑  0  ↓     ответ

    I read this piece of writing fully about the comparison of latest and earlier

    technologies, it's remarkable article.

  • Come rimuovere il grasso dalle gambe senza dieta
    Come rimuovere il grasso dalle gambe senza dieta
    15 Марта 2018, 11:26
     ↑  0  ↓     ответ

    Thanks for one's marvelous posting! I genuinely enjoyed reading it, you will be a great author.I will remember to bookmark your blog and may come back from now on. I want to encourage you continue your great writing, have a nice weekend!

  • Agen Judi Online
    Agen Judi Online
    24 Марта 2018, 01:18
     ↑  0  ↓     ответ

    Modal dalam bermain taruhan judi bola on-line odd


  • новые игры
    новые игры
    05 Мая 2018, 04:38
     ↑  0  ↓     ответ

    На позапрошлой неделе Я забрал бабло в этом любимом казино

  • agen judi bola
    agen judi bola
    31 Мая 2018, 15:53
     ↑  0  ↓     ответ

    Valentine's Working day is pretty much listed here and you must

    place on your considering caps to make your mind up which gift would be the

    appropriate one for your valentine. If you have by

    no means gifted flowers, this time you can categorical your

    really like with valentine bouquets. No matter whether it is your sweetheart

    or your spouse, you must keep in mind that girls enjoy valentine bouquets.

    Your loved one will shower you with far more love if you are profitable in picking out

    the very best valentine bouquets.

    On-line flower stores offer a assortment and therefore you will not

    have any challenge deciding on them. You can then select to deliver the flowers by article and

    surprise your particular person. Make confident you decide

    on an on the net florist who sends new valentine flowers by submit.

    If the assistance of bouquets by put up involves

    totally free supply, then you must choose for it.

    Why do men and women ship valentine bouquets by publish?

    As you know, Valentine's Day is the most romantic working day in the calendar year.

    Therefore, on this working day you can say it ideal with flowers.

    There can not be any greater way of demonstrating that you care.

    Numerous folks regard it to be an act of like to

    deliver flowers by write-up. It is also a ways of expressing that

    you are imagining about your beloved. If you want to be

    a lot more passionate this calendar year, then you can gift some

    dim chocolate alongside with valentine flowers.

    In fact, bouquets are among the most well-liked present for a passionate

    celebration. Therefore, you can never go incorrect with

    valentine flowers.

    Deciding upon the proper valentine flowers can be a little bit complicated.

    Now in this article are practical tips for

    you. Many folks assume that crimson roses are the only proper bouquets intended for Valentine's Working day.

    That makes roses major the record of popularity when it arrives to valentine flowers.

    Purple roses are typical alternatives but orange, white, yellow, and pink roses are also well known these days.

    If the receiver ended up a classy human being then proper flower would be tulips.

    A particular person who matches the tulip personality is one particular who

    is just irresistible and pretty spontaneous. Orchid

    is a well-known merchandise as well and it is

    best for another person who is mysterious, daring, and exotic.

    Daisies are fantastic Valentine flower for these who are sentimental sweet, and caring.

    Lily bouquets are terrific for individuals who are generally

    sincere. If your beloved is, a pretty devoted particular

    person then you can send a bouquet of beautiful carnations.

    Ship the bouquets by publish on the D-working day.

  • situs judi bola resmi
    situs judi bola resmi
    01 Июня 2018, 04:36
     ↑  0  ↓     ответ

    Valentine's Day is practically below and you ought to

    place on your considering caps to come to a decision which

    reward would be the appropriate just one for your

    valentine. If you have hardly ever gifted bouquets,

    this time you can specific your love with valentine bouquets.

    No matter if it is your sweetheart or your wife, you ought

    to bear in mind that females like valentine flowers.

    Your liked 1 will shower you with much more really like if

    you are productive in deciding upon the most effective valentine bouquets.

    On the web flower suppliers offer a variety and as a result you will not have any challenge selecting them.

    You can then pick out to send out the bouquets by put up and surprise your

    particular particular person. Make guaranteed you find an on the net florist who sends fresh

    new valentine flowers by put up. If the service of bouquets by publish consists of free delivery, then you

    need to decide for it.

    Why do individuals send valentine bouquets by write-up?

    As you know, Valentine's Working day is the most intimate

    working day in the 12 months. Thus, on this working day you can say it greatest with bouquets.

    There simply cannot be any far better way of exhibiting that you treatment.

    Quite a few folks regard it to be an act of enjoy to mail bouquets

    by write-up. It is also a ways of expressing that you are thinking about your beloved.

    If you want to be more passionate this calendar year, then you can present some dark chocolate

    alongside with valentine bouquets. In fact, flowers are amid the most

    well-known present for a romantic occasion. Consequently,

    you can under no circumstances go improper with valentine bouquets.

    Picking the right valentine bouquets can be a little bit perplexing.

    Now here are useful solutions for you. Numerous people feel that pink roses

    are the only acceptable bouquets meant for Valentine's Working day.

    That will make roses leading the list of acceptance when it arrives to valentine bouquets.

    Pink roses are common selections but orange, white,

    yellow, and pink roses are also well known these days.

    If the recipient had been a attractive person then ideal flower

    would be tulips. A person who matches the tulip identity is a person who is

    just irresistible and really spontaneous. Orchid is a well-liked item as perfectly and it is very

    best for another person who is mysterious, daring, and exotic.

    Daisies are great Valentine flower for all those who are sentimental sweet, and caring.

    Lily bouquets are wonderful for individuals who are usually sincere.

    If your beloved is, a extremely devoted person then you can send out a

    bouquet of beautiful carnations. Send the flowers by put up on the D-working day.

    16 Июня 2018, 20:54
     ↑  0  ↓     ответ

    Hi, I do believe this is a great blog. I stumbledupon it ;) I am going to revisit yet again since i have bookmarked it.

    Money and freedom is the best way to change, may

    you be rich and continue to guide others.

  • read me
    read me
    10 Июля 2018, 20:47
     ↑  0  ↓     ответ

    Link exchange is nothing else however it is

    simply placing the other person's webpage link on your page at suitable

    place and other person will also do similar in favor of you.

  • small bathroom vanity set
    small bathroom vanity set
    28 Декабря 2018, 07:07
     ↑  0  ↓     ответ

    There ar? a number of shapes and sizes which

    can be also available іndependеnt of the traditіonal kind

    such as square, rectаngular or oval. In India mar?les aree im?orted all aro?nd the ?lobe due to a soughtt after demаnd within the domeѕtic market.

    P?astic house or vinyl siding L?ngview is definitely

    an artificia? іtem or utility employing a polyvinyl chloride plastic tar and

    in a?dition material.

  • minecraft
    11 Апреля 2019, 18:26
     ↑  0  ↓     ответ

    Every weekend i used to pay a quick visit this web page, as i wish for enjoyment,

    as this this web page conations in fact pleasant funny data


    12 Апреля 2019, 01:17
     ↑  0  ↓     ответ

    Magnificent items from you, man. I have take into account your stuff previous to and you're simply too wonderful.

    I actually like what you've received here, really like what you are saying and the way

    in which wherein you say it. You make it enjoyable

    and you still care for to stay it smart. I cant wait to read much more from you.

    That is really a great site.

  • minecraft
    13 Апреля 2019, 01:16
     ↑  0  ↓     ответ

    I believe everything published made a ton of sense. But, what

    about this? suppose you were to write a awesome post

    title? I am not saying your content isn't good., however suppose you added a post title that makes

    people want more? I mean Переменные шаблона Joomla,получение title

    страницы, базового и текущего URL,

    параметров / Разработка шаблонов

    Joomla .:. Документация Joomla! CMS is kinda vanilla.

    You ought to glance at Yahoo's home page and see how they create post titles to

    get people interested. You might try adding a video or a

    related picture or two to get people interested about everything've written. Just

    my opinion, it might bring your website a little bit more interesting.

  • Agen terpercaya
    Agen terpercaya
    16 Апреля 2019, 18:20
     ↑  0  ↓     ответ

    I was curious if you ever considered changing the structure of your site?

    Its very well written; I love what youve got to say.

    But maybe you could a little more in the way of content so

    people could connect with it better. Youve got an awful lot of text

    for only having one or 2 pictures. Maybe you could space it

    out better?

  • minecraft
    18 Апреля 2019, 07:09
     ↑  0  ↓     ответ

    Hello! I know this is kinda off topic nevertheless I'd

    figured I'd ask. Would you be interested in trading links or maybe guest writing a blog article or vice-versa?

    My blog goes over a lot of the same topics as yours and I feel we could greatly benefit from each

    other. If you're interested feel free to send me an e-mail.

    I look forward to hearing from you! Excellent blog

    by the way!

  • minecraft
    20 Апреля 2019, 21:39
     ↑  0  ↓     ответ

    Woah! I'm really enjoying the template/theme of this blog.

    It's simple, yet effective. A lot of times it's hard

    to get that "perfect balance" between user friendliness and

    visual appeal. I must say you have done a awesome job with this.

    In addition, the blog loads super fast for me on Internet explorer.

    Superb Blog!

  • minecraft
    21 Апреля 2019, 10:01
     ↑  0  ↓     ответ

    This paragraph will assist the internet people for

    setting up new blog or even a blog from start to end.

  • minecraft
    23 Апреля 2019, 16:41
     ↑  0  ↓     ответ

    Thank you for some other great article. The place else may

    just anyone get that kind of info in such a perfect manner of writing?

    I've a presentation next week, and I'm on the look for such info.

  • babyboom nagels breda
    babyboom nagels breda
    29 Апреля 2019, 22:57
     ↑  0  ↓     ответ

    Your means of describing the whole thing in this paragraph is really fastidious, every

    one be capable of effortlessly know it, Thanks a lot.

  • agen maxbet terpercaya
    agen maxbet terpercaya
    14 Мая 2019, 19:29
     ↑  0  ↓     ответ

    Currently it seems like Expression Engine is the preferred blogging platform out there right now.

    (from what I've read) Is that what you are using on your blog?

  • google
    24 Мая 2019, 08:36
     ↑  0  ↓     ответ

    Pretty component of content. I simply stumbled upon your blog

    and in accession capital to say that I acquire

    actually enjoyed account your weblog posts. Any way I'll be subscribing on your feeds or even I success you get right

    of entry to consistently rapidly.

  • how to get help in windows 10
    how to get help in windows 10
    24 Мая 2019, 23:15
     ↑  0  ↓     ответ

    Yes! Finally someone writes about how to get help in windows 10.

  • baby tree nails
    baby tree nails
    03 Июня 2019, 20:37
     ↑  0  ↓     ответ

    Touche. Solid arguments. Keep up the great effort.

  • rlfi=hd:;si:15192377117449176960;mv:!1m2!1d51.8241957!2d5.1126927!2m2!1d51.5372439!2d4.4234361!3m12!1m3!1d138948.42239726178!2d4.7680644!3d51.6807198!2m3!1f0!2f0!3f0!3m2!1i502!2i337!4f13.1
    16 Июня 2019, 12:24
     ↑  0  ↓     ответ

    you are in reality a good webmaster. The web site loading pace is incredible.

    It seems that you're doing any distinctive trick. Moreover, The contents are masterpiece.

    you have performed a excellent job on this subject!

  • Acryl nails
    Acryl nails
    16 Июня 2019, 22:13
     ↑  0  ↓     ответ - shorten links and earn money!

  • administratiekantoor
    17 Июня 2019, 01:59
     ↑  0  ↓     ответ

    This website was... how do I say it? Relevant!! Finally

    I have found something which helped me. Thank you!

  • uncategorized
    19 Июня 2019, 19:29
     ↑  0  ↓     ответ

    I'm gone to inform my little brother, that he

    should also pay a quick visit this web site on regular basis

    to take updated from newest news.

  • agen maxbet
    agen maxbet
    04 Июля 2019, 08:11
     ↑  0  ↓     ответ

    I like the helpful info you supply to your articles.

    I will bookmark your weblog and take a look at again here frequently.

    I'm relatively certain I'll learn a lot of new stuff proper here!

    Best of luck for the following!

  • How Do You Get Rid of Hemorrhoids
    How Do You Get Rid of Hemorrhoids
    09 Августа 2019, 19:38
     ↑  0  ↓     ответ

    Genuinely no matter if someone doesn't understand then its up to

    other viewers that they will help, so here it takes place.

  • What Do Hemorrhoids Look like
    What Do Hemorrhoids Look like
    10 Августа 2019, 14:48
     ↑  0  ↓     ответ

    This post is priceless. How can I find out more?

  • Jeanna
    14 Октября 2019, 19:00
     ↑  0  ↓     ответ

    I visited various sites however the audio feature for audio songs current

    at this website is truly superb.

    24 Ноября 2019, 08:23
     ↑  0  ↓     ответ

    My family all the time say that I am killing my time here at net, however I know I am getting know-how all

    the time by reading such fastidious articles.

    24 Ноября 2019, 16:22
     ↑  0  ↓     ответ

    I'm not sure why but this weblog is loading incredibly slow for me.

    Is anyone else having this problem or is it a problem on my end?

    I'll check back later on and see if the problem still exists.

  • plenty of fish dating site
    plenty of fish dating site
    26 Ноября 2019, 07:52
     ↑  0  ↓     ответ

    Excellent post. I used to be checking constantly this weblog and I'm inspired!

    Extremely useful information particularly the closing part

    :) I maintain such information much. I was looking for this particular

    info for a very long time. Thanks and good luck.

  • Essie
    27 Декабря 2019, 22:43
     ↑  0  ↓     ответ

    Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn't show

    up. Grrrr... well I'm not writing all that over again. Anyhow,

    just wanted to say great blog!

  • Alanna
    06 Января 2020, 21:41
     ↑  0  ↓     ответ

    Wow that was odd. I just wrote an incredibly

    long comment but after I clicked submit my comment didn't appear.

    Grrrr... well I'm not writing all that over again. Regardless,

    just wanted to say superb blog!

  • Krystle
    16 Января 2020, 10:09
     ↑  0  ↓     ответ

    Hey would you mind stating which blog platform you're using?

    I'm going to start my own blog soon but I'm having a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your design seems different then most blogs and I'm looking for something completely unique.

    P.S My apologies for getting off-topic but I

    had to ask!

  • Susanne
    08 Февраля 2020, 03:38
     ↑  0  ↓     ответ

    I have learn some just right stuff here. Definitely price bookmarking for

    revisiting. I wonder how so much effort you put to make the sort of wonderful informative web site.

Оставить комментарий

* обязательно для заполнения

1 введенный почтовый адрес используется только для обратной связи при ответах в комментариях и сервиса