hidden text field in RC V1881

More
10 years 7 months ago #46241 by rottenberg
Hello
Joomla version : J.3.2.3
FC version : RC V1881

In the type or article I have 2 hidden fields.In these fields I have set a div style to display background and border.

these fields contains :

- the first in field description of the template displayed in the prefix :
Code:
<div style="text-align:justify;padding:10px;background-color:#ffffff;margin-top:10px;margin-bottom:10px;border: medium solid #cccccc;border-radius: 10px;-moz-border-radius: 10px;-webkit-border-radius: 10px;float:left;min-width:98%">

- the last in field description of the template displayed in the suffix :
Code:
</div>

Theses fields are hidden, required. The default value is
Code:
&nbsp
. This default value is displayed if the field is empty.

Until V1880 no problem, I got a border around the concatenation of all valued of description zone.

In the V1881, in the first field the prefix/default value is followed by "< /div>" which I think, has been automatically added. So the div is closed immediatly.

Is the added '< / div> a bug or a necessity ?

In my case adding a < / div> is not a problem. I have suppressed it with 'Rereplacer'.

I just wanted to understand why this change in the V1881.

best regards

Michel

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

More
10 years 7 months ago #46281 by ggppdk
Hello

so you have 2 custom text fields, and you are adding their values in the prefix and suffix parameter of the description field



-- and the field value replacement feature on the prefix suffix is no longer working?

is the above you issue that you describe




-- regardless of the above since the value of these hidden text fields do not change per item, using field value replacement feature should be avoided since in category view it can cost a little, ok cost will be quite small but anyway why do it if not needed,

(of course fixing field value replacement feature in prefix/suffix, if broken will be done)


-- 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...

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

More
10 years 7 months ago #46284 by rottenberg
hello

It's not exactly what I wanted to describe.

My problem : display a border around the description field content.

To do that I have created 2 hidden fields :
- top field : containing the <div style="...">. The div text is entered in the prefix/suffix zone
- bottom field : containinge the </div>. '</div> is entered in prefix/suffix zone.

I always create the hidden fields with this parameters :

- field hidden in all cases.
- the field is mandatory and mono value
- the default value is 'default value displayed if the field is empty'. We need to enter something in the default value. If not, the value is not displayed in the article. Generally I enter '&nbsp;'

Until RC V1880 it was working great.

On RC V1881, a '</div>' is automatically added at the end of the 'top field'. So my border is closed directly and there is no border on the description zone.

I have found a solution using Rereplacer :
- I give a specific value in the default value : 'topfield'. In the article I get topfield</div>.

With Rereplacer I replace topfield</div> by a empty character chain. So the additionnal </div> is deleted and the description zone is bordered.


I just wanted to know why an additional '<div>' is displayed.

If you have a better solution I will use it.

Just I don't want to modify the template source (I could have added the <div style="">... </div> in the template source.
I prefer when it's possible keeping the template source as given by default.

best regards

Michel

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.354 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