Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
opentype Posted December 18, 2014 Posted December 18, 2014 Looking at the new template editor I am really missing the old template tag overview column where I could easily pick out any variables of my databases. Is that really gone? Is there some other place or way to see these variables? In addition, the template logic has changed significantly. How would I recreate something like this now? <if test="$data['record']['field_20_value']=='something'"> Text: {$data['record']['field_20_value']} </if>
-GR- Posted December 19, 2014 Posted December 19, 2014 I am really hoping some of the features like the variables available come back. We had all custom blocks using a primarily cached index page for the live site. Now on the test upgrade I am going to have to basically start completely over which is fine but there is a lot of stuff missing. Seems like a lot of settings we used to have are not there anymore site wide also. I like where 4.0 is going but wish we still had some of those setting options.
TSP Posted December 20, 2014 Posted December 20, 2014 @opentype: Look at the documentation you're linking too for how to write new if-section Should be something like: {{if $data['key'] == 'something'}} Text {$data['key']} {{endif}} You could look at how things are done in the default theme by going into edit mode for it. I'm on mobile now, so can't provide any more detailed instructions right now, but do say if you need more guidance on that
opentype Posted December 20, 2014 Author Posted December 20, 2014 Should be something like: {{if $data['key'] == 'something'}} Text {$data['key']} {{endif}}Yeah, I got how to set up the statements in general. But I a struggling to find out how specific variables are called /accessed now. In the default templates, I see they are now written like $record->some_name_here. But there is no overview of these names anymore and I don’t know where to find them elsewhere.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.