Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
GingerSue
GingerSue
Hi, I hope someone can help me with this problem.
 
I'm using Viart 3.6
 
I enabled PHP in custom blocks in the global settings. Yet when I create the custom block, all of the php is stripped out and leaves plain text.
 
Is there another step that I'm missing?
 
Thanks :)
 
Bailey (Guest)
Bailey (Guest)
Have you tried using html in the block instead?
 
GingerSue
GingerSue
Thanks for the reply!
 
It's definitely php that I need to put in the block. What I'm trying to do is put a block on my shop that pulls in the titles/links to my latest wordpress blog entries.
 
The description of how to do it is at http://www.corvidworks.com/articles/wordpress-content-on-other-pages
 
So I added the code to the top of my page as required, then I enabled php in custom blocks, then I copied the php code to the block but Viart stripped out the php from the custom block instead of allowing it to work as needed.
 
Bailey (Guest)
Bailey (Guest)
I'm far from an expert but just thought I'd throw out what worked for me - even though I'd enabled php in custom blocks, it would only take html. No idea why, but it's worked for me.
 
Hope you can find an answer soon.
 
Ned
Ned
Sue,
I think the php is being stripped by the parser in the block creation window.
Create a new file with the html and php in it and use "Get Content from File" and reference it.
You can do this either as a relative ("sue/block.html") or universal ("http://suessite.xx/sue/block.html") link.
 
I normally create a per site special folder/directory to put in bits and pieces like this as well as for specific graphics etc. This is because your special folder is outside any upgrade paths.
HTH