Template Help, Please!

More
13 years 5 months ago #16872 by ggppdk
Replied by ggppdk on topic Template Help, Please!
STEP 1: Clone the 'blog' and the 'default' Templates by clicking the plus sign next to their name, name the as you like, eg. hotels-blog, hotels.
[attachment=1:37sumxlz]<!-- ia1 -->clone.png<!-- ia1 -->[/attachment:37sumxlz]
Now inside the folder components/com_flexicontent/templates you have 4 folders: blog, default, hotels, hotels-blog



STEP 2: Add a new position to template hotels for the item view.

--> A. Add a line in file: hotels/item.xml< --
Code:
<fieldgroups> <group>subtitle1</group> ... <group>mypos1</group> ... <fieldgroups>

--> B. In file: hotels/item.php< --
copy-paste a block of lines of an existing position and then replace all occurrences of string 'subtitle3' with 'mypos1'. So that you get something like:
[attachment=0:37sumxlz]<!-- ia0 -->itempos.png<!-- ia0 -->[/attachment:37sumxlz]



STEP 3: Now you can add your css in file hotels/css/item.css to shape the position and the fields inside it:
--> the css class for the containing block if mypos1 position is
.mypos1{}
--> the css class for the labels of the fields is class
.mypos1 label.field_firstname {}
.mypos1 label.field_lastname {}
.mypos1 label.field_email {}
--> the css class for the values of the fields is
.mypos1 value.field_firstname {}
.mypos1 value.field_lastname {}
.mypos1 value.field_email {}

A Note:
--> If you want 2 positions to be next to each other or some other fancy styling you have to know css well to do it.

If you need to alter other template views other than item ask me.


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Attachments:

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #16874 by micker
Replied by micker on topic Template Help, Please!
yopu can read some french tutoriel (with google translate) here
flexicontent.org/forum/index.php ... =viewtopic
an english version is comming
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.272 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline