Quote

We're also available for Custom Joomla Development

Hire us now

Latest News + How to add new template layout?

Hello all!
Please help! I created a new file and copy to tmpl folder. But in the list of template layout I can see just 1 template layout "default". How I can add my own template layout and seeing him in the list of template layout?
Thanks, Dima
Resolved
The discussion has been resolved.

Accepted Answer

  • Replied by admin on Saturday, April 16 2016, 01:43 PM
    Do not use underscore for your template name. Use dash instead, for example, you can change the file name from date_news.php to date-news.php

    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
     
  • Replied by admin on Friday, April 15 2016, 10:06 AM · Hide· #1
    Hi DIma, simply duplicate the file
    modules/mod_latestnewsplusdate/tmpl/default.php
    into
    modules/mod_latestnewsplusdate/tmpl/mylayout.php
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by dock on Friday, April 15 2016, 03:52 PM · Hide· #2
    I did this, but in the list of Alternative Layouti see just 1 Layout - "default"
    Joomla! 3.5.1
  •  
  • Replied by dock on Friday, April 15 2016, 03:57 PM · Hide· #3
    I want to see more than one Layout in the list
  •  
  • Replied by dock on Saturday, April 16 2016, 01:46 PM · Hide· #4
    Thanks, i'll try.
  •  
  • Replied by dock on Saturday, April 16 2016, 01:48 PM · Hide· #5
    It's work! Many thanks for your help!
  •  
  • Replied by admin on Saturday, April 16 2016, 01:53 PM · Hide· #6
    Great, Glad it helps ;)
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by admin on Saturday, April 16 2016, 03:17 PM · Hide· #7
    Anyway, for more 'future update safe' it's better to place the layout under your template folder, for example
    [roo]/templates/your-template-name/html/mod_latestnewsplusdate/date-news.php
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  •  
    Replied by dock on Saturday, April 16 2016, 05:19 PM · Hide· #8
    Ok, thanks.
Your Response
Please login first in order for you to submit comments