1
GIanluka
How to edit myalbum's Template?
  • 2007/2/24 0:07

  • GIanluka

  • Just popping in

  • Posts: 9

  • Since: 2007/2/12


Ive tried to edit this template but my editings cant be seen on the site, and i dont understand why
anyone can help me?

2
slyss
Re: How to edit myalbum's Template?
  • 2007/2/24 7:10

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


ciao gianluka

first you need to CLONE the default template set.

Then when your cloned default template is done go to preference to set it by default.

Now, you are able to modify all your templates because the template set by default is not writable.


Byee...
[size=x-large]2008 Xoops Book[/size]

3
wizanda
Re: How to edit myalbums Template?
  • 2007/2/24 7:27

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


You need to update the module, if you are editing a modules template files, by updating it in modules admin page, to refresh the template files used.

4
snow77
Re: How to edit myalbums Template?
  • 2007/2/24 19:13

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


quoting slyss79
Quote:
first you need to CLONE the default template set..


this process is unnecessary if you are running any XOOPS version equal or greater than XOOPS 2.0.14

XOOPS now has template overriding feature that can be implemented from the theme. One of the benefits of this is that when you upgrade your XOOPS modules you won't lose all the modifications you have done to templates.

The instructions are found in the release notes of XOOPS 2.0.14:

Quote:
Templates overriding

Designers can add custom templates to their themes, and those will be used instead of the default ones. To exploit this feature, templates have to be created in subfolders of the themes duplicating the default folders structure and removing the "templates" part:

* To overload system_userinfo.html template located in modules/system/templates/system_userinfo.html you have to create your custom version in <yourthemefolder>/modules/system/system_userinfo.html
* To overload system_block_login.html template located in modules/system/templates/blocks/system_block_login.html you have to create your custom version in <yourthemefolder>/modules/system/blocks/system_block_login.html

Output resources overriding for developers

To allow theme designers to customize images or stylesheets, you have to use the new theme class and xoImgUrl templates plug-in.

* Scripts and stylesheets can be declared to XOOPS using the theme class addScript and addStylesheet methods. The theme instance is available after the inclusion of header.php by using the $xoTheme global variable, and in a template variable of the same name:
<{$xoTheme->addStylesheet('modules/newbb/style.css')}>
* Images and medias URLs have to be generated by using the xoImgUrl plug-in in your templates:
<img src="<{xoImgUrl modules/newbb/images/reply.png}>" alt="reply" />

Output resources overriding for designers

Designers can also provide custom versions of most output-related resources using a mechanism similar to the one available to templates, for modules that support this.

* To create a custom stylesheet that will replace modules/newbb/style.css, create your customized file in <yourthemefolder>/modules/newbb/style.css
* To create a custom image that will replace modules/newbb/images/reply.png, create your customized file in <yourthemefolder>/modules/newbb/images/reply.png


you need to set to Yes, in adminsitration panel > system > preferences > general setting

the option: Check templates for modifications ?
while your doing the changes, then set back to No when finished. Deleting also all files in templates_c except index.html is usefull too to erase cache.
www.polymorphee.com
www.xoopsdesign.com

Login

Who's Online

172 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits