Hi,
I’ve got two images (’visuals’ of a sort) inside a template I’m working on. However those images should be different from page to page.
One of them is on every page, the other isn’t needed at all for a couple of pages (and leaving it out won’t break the lay-out).
Can I put some kind of place-holder in the code which can be filled in later through the ModX web interface or browser-based Editor (and which can be empty)?
-
☆ A M B ☆
- 24,524 Posts
Yes. Use Template Variables with input type Image and an image output widget. You can either have a default image, or leave the default blank.
I did like you said, but the "Resource File Browser" (FCKEditor) page doesn’t show up, I can’t browse to another folder. Also when I try to upload something, it tells me "Disallowed file type" even though jpg’s are allowed in the Configuration input field.
Also, when I fill in a default value and fill in e.g. /images/mypicture.jpg, it does accept that and it shows up on the resulting page.
Edit: I changed security permission for the user I am working with. Now I get the error "Failed to upload file, internal error" when I try to upload something.