Jump to content

Basic Website Tutorial


Joss
 Share

Recommended Posts

Well you have to remove it from the template, then you can delete the actual field.

Not exactly related, but if you want to delete a template - you need to remove it from any pages that have it assigned. The trash will come into play in this case - you'll need to remove the page from the trash before you can delete the template.

Link to comment
Share on other sites

Trying to get rid of the whole first/last image option and just go with a simpler add one image system...

If I use this in my template the image on the front end page will not display even though I can see it on the page edit in the Admin?

<img src="<?=$page->article_secondimage ?>">

Link to comment
Share on other sites

You still need to add a ->url after that. At the moment you are referencing the entire article_secondimage. You need to add the url property. Other options include, filename, description, ext etc.

Link to comment
Share on other sites

Thanks, I just discovered that was missing...

So, my slightly different template, using just one image, for both main and second image Fields seems to work!

I am just going to have to get used to the correct PHP placeholder syntax that gets added to my templates. This is sort of a different approach than what I am used to with MODx (TVs - template variables), etc...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...