Skip to main content

Create or Change Templates

Every Template maintain some structure while designing according to joomla .Joomla made some conditions regarding this

Contents
templateDetails.xml: it is a xml file which contains all the details about template like Template name , description,author,file names which contains while installing template this details helps to install the template details .every template must include templateDetails.xml file
after installing template not recommended to change the values in xml file .

Images(folder): it contains all the image files which are use full for designing the template

CSS: this folder contains all the styles for template.

[b]template_thumbnail.png:[b] it is used to display the thumbnail view of the template ..we find this view in template manager on mouse over the templates.

index.php: it contains all the template design code . The backend support for designing the template is php.

Mostly every page starts with:
Code:

defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>



the above code prevents direct accesing through saved links ...the user page will not be displayed directly by links to load plugins into the template JPlugin class is used . LoadLanguage is a method in the Jplugin class .which is used to load the language packs.

Code:

<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />

: we use above link to embedd the style sheet

Code:

include type="head" />

:Used to include module of specific type... for above example it is head type .which is include in head tag

Code:

include type="modules" name="user9" />

:used to include type modules like menus... etc.. by using specific positions .positions declared with an variable name...

Comments

Popular posts from this blog

Create or Customize Master Page in sharepoint

Before using the base master page,please fimiliare yourself with various sections of the base master page code · Required Components · Optional Components · Hidden Components Required Components: If no availability of required components sharepoint page cannot render properly All the components are placed in a their corresponding content place holder asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” /> This content placeholder corresponds to the content area in page layouts.It is required for the MOSS site to render properly. All the required which are not usefull should be placed .If you delete those place holders sharepoint page cannot render properly Following are the some of the required components asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” /> asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server"> asp:ContentPlaceHolder id="PlaceHolderTopNavBar...

Using Friendly URLs(SEO) in Joomla

In folder apacheconf open file httpd.conf #LoadModule rewrite_module modules/mod_rewrite.so and make it as uncommented LoadModule rewrite_module modules/mod_rewrite.so In site root folder there is rename htaccess.txt to .htaccess and now open .htaccess and go to following line # RewriteBase / and uncomment this line as following and mention root for ex. testsite in following line RewriteBase /testsite Go in administrator panel and click on Global coniguration Here on right side we get SEO Settings all three SEO Settings set as yes and click on save

Randomly Displaying a Single SharePoint Item on Refresh

This is how: 1. Create a new Data View web part in SharePoint Designer that displays all records in the format you want. We will end up only showing one record, so keep that in mind when you are laying this out. 2. Open the Filter dialog 3. Do not add any clauses, instead check the Add XSLT Filtering box and click Edit 4. Create your XSLT filter. You can just paste in the following code: [position() = (substring(ddwrt:FormatDateTime(ddwrt:TodayIso(),1033,":mm:ss"),6,2) mod count(/dsQueryResponse/Rows/Row))+1] 5. Click Ok and save the page in SharePoint Designer 6. Check your work in your browser. Refresh the page to see the item rotate.