This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

using fields


avatar
Forma 17
From: -
using fields

just wondering how to get a field to display.

it used to be $insert[story_extra] but this doesnt work anymore. I tried to look for what it might be in phpadmin but it's bizzarre as all i can see is an entry called fields.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: using fields
avatar
OP 17
From: -
using fields

i've taken this to email.
1 Re: using fields
avatar
Administrator
1342
From: Austria
using fields

Where exactly do this problem appear?
1 Re: using fields
avatar
OP 17
From: -
using fields

for some reason in ST, this shows up as it should with html set to off:

<p>Nvidia <a href="https://www.contentteller.com/  http://www.nordichardware.com/news,7708.html" target="_blank">has launched</a> the long-overdue nForce 780a chipset, which has an integrated graphics processor for Hybrid SLI. Follow the link for reviews.</p>

but in CT it doesn't, it will show up all the html tags, etc.
1 Re: using fields
avatar
Administrator
1342
From: Austria
using fields

I completely forgot about these. No, you can’t use the raw fields in the templates after the data will not passed to the $insert array.

Is there any special reason why you want to enable HTML on all stories? Acquire should detect if a story previously used the HTML setting.
1 Re: using fields
avatar
OP 17
From: -
using fields

ok that didn't work as i wanted it to, the change worked but all the stories i imported from ST still won't display as html as its still using special chars in newsstory_story and newsstory_extendedstory.

all the stories now have newsstory_html set to 1.

should i just use newsstory_rawstory and newsstory_rawextendedstory or are there drawbacks to this?
1 Re: using fields
avatar
Administrator
1342
From: Austria
using fields

UPDATE esselbach_ct_newsstories SET newsstory_html = '1';
1 Re: using fields
avatar
OP 17
From: -
using fields

good to know Smiling Face

while i'm fixing problems with news, what should i type in phpmyadmin query window to change all news storys to use html on?

thanks!
1 Re: using fields
avatar
Administrator
1342
From: Austria
using fields

This is a problem that has been fixed in Preview 6. Contentteller Preview 6 should be out later this week.
1 Re: using fields
avatar
OP 17
From: -
using fields

this made the text be read as html, but:

<table width="100" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>hello</td></tr></table>

this is what it does if i view source for the html i've put in the field. everything placed in the isn#t read, how can i get it to deleate the
1 Re: using fields
avatar
Administrator
1342
From: Austria
using fields

Are you running PHP 5? Then you could add this in the PHP part of the template to turn text back to HTML:

$insert['newsstory_extra1'] = htmlspecialchars_decode($insert['newsstory_extra1']);

$insert['newsstory_extra2'] = htmlspecialchars_decode($insert['newsstory_extra2']);

etc...
1 Re: using fields
avatar
OP 17
From: -
using fields

i should have tried that, whoops!

now it's working, but if i use html in the field it doesn't display it as anything other than text.
1 Re: using fields
avatar
Administrator
1342
From: Austria
using fields

The field name for the news section is {$insert['newsstory_extra1']}
1 Re: using fields
avatar
OP 17
From: -
using fields

a quick response would be muh apprectiated here as i'm trying to import my news from ST to CT and need my old story fields to work, at present they have imported fine, but i cannot add the field to the story template, im lost.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.