- Posts: 107
- Thank you received: 0
Slot content : how to add next line
-
plive
Active member - Topic Author
- Member
Less
More
12 years 6 months ago #18897
by plive
Slot content : how to add next line was created by plive
Hello,
Slot content does not care next line of text, how can i do it ?
see www.coregepg-sport.fr
thank you for your help
Slot content does not care next line of text, how can i do it ?
see www.coregepg-sport.fr
thank you for your help
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 6 months ago #18905
by ivan.milic
Replied by ivan.milic on topic Re: Slot content : how to add next line
that link you gave is bad
Please Log in to join the conversation.
-
plive
Active member - Topic Author
- Member
Less
More
- Posts: 107
- Thank you received: 0
12 years 6 months ago #18917
by plive
Replied by plive on topic Re: Slot content : how to add next line
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 6 months ago #18924
by ivan.milic
Replied by ivan.milic on topic Re: Slot content : how to add next line
Problem is that joomla by default clears html tags from text parameter fields.
Open modules\mod_hot_accordion\mod_hot_accordion.xml
This is xml for first slot:
note this element:
<field name="text1" type="textarea" cols="50" rows="4" default="" label="LABEL TEXT" description="DESC TEXT" />
You need to add this attribute:
filter="raw"
so it look like this:
<field name="text1" type="textarea" cols="50" rows="4" filter="raw" default="" label="LABEL TEXT" description="DESC TEXT" />
do it for all 10 slots
Open modules\mod_hot_accordion\mod_hot_accordion.xml
This is xml for first slot:
Code:
<fieldset name="slot1" label="LABEL SLOT1">
<field name="slot1" type="list" default="0" label="LABEL SLOT" description="DESC SLOT">
<option value="1">On</option>
<option value="0">Off</option>
</field>
<field name="heading1" type="text" default="" label="LABEL HEADING" description="DESC HEADING" />
<field name="text1" type="textarea" cols="50" rows="4" filter="raw" default="" label="LABEL TEXT" description="DESC TEXT" />
<field name="link1" type="text" default="" label="LABEL LINK" description="DESC LINK" />
<field name="image1" type="media" default="" label="LABEL IMAGE" description="DESC IMAGE" />
</fieldset>
<field name="text1" type="textarea" cols="50" rows="4" default="" label="LABEL TEXT" description="DESC TEXT" />
You need to add this attribute:
filter="raw"
so it look like this:
<field name="text1" type="textarea" cols="50" rows="4" filter="raw" default="" label="LABEL TEXT" description="DESC TEXT" />
do it for all 10 slots
Please Log in to join the conversation.
-
plive
Active member - Topic Author
- Member
Less
More
- Posts: 107
- Thank you received: 0
12 years 6 months ago #18927
by plive
Replied by plive on topic Re: Slot content : how to add next line
Many thanks Ivan, i'll try it
Please Log in to join the conversation.
-
plive
Active member - Topic Author
- Member
Less
More
- Posts: 107
- Thank you received: 0
12 years 6 months ago #18935
by plive
Replied by plive on topic Re: Slot content : how to add next line
Hi Ivan,
as you described source code, i have same version, filter="raw" was already set :
<fieldset name="slot1" label="LABEL SLOT1">
<field name="slot1" type="list" default="0" label="LABEL SLOT" description="DESC SLOT">
<option value="1">On</option>
<option value="0">Off</option>
</field>
<field name="heading1" type="text" default="" label="LABEL HEADING" description="DESC HEADING" />
<field name="text1" type="textarea" cols="50" rows="4" filter="raw" default="" label="LABEL TEXT" description="DESC TEXT" />
<field name="link1" type="text" default="" label="LABEL LINK" description="DESC LINK" />
<field name="image1" type="media" default="" label="LABEL IMAGE" description="DESC IMAGE" />
</fieldset>
Nothing change.
thank you
as you described source code, i have same version, filter="raw" was already set :
<fieldset name="slot1" label="LABEL SLOT1">
<field name="slot1" type="list" default="0" label="LABEL SLOT" description="DESC SLOT">
<option value="1">On</option>
<option value="0">Off</option>
</field>
<field name="heading1" type="text" default="" label="LABEL HEADING" description="DESC HEADING" />
<field name="text1" type="textarea" cols="50" rows="4" filter="raw" default="" label="LABEL TEXT" description="DESC TEXT" />
<field name="link1" type="text" default="" label="LABEL LINK" description="DESC LINK" />
<field name="image1" type="media" default="" label="LABEL IMAGE" description="DESC IMAGE" />
</fieldset>
Nothing change.
thank you
Please Log in to join the conversation.
Time to create page: 0.084 seconds