SnippetMaster Support Forums
Return to main website
 
February 20, 2007, 02:47:02 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 20, 2007, 02:47:02 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: Embedded snippet tag « previous next »
Pages: [1] Print
Author Topic: Embedded snippet tag  (Read 7 times)
graphmap

Posts: 2


[-] Embedded snippet tag
« on: Today at 04:16:47 AM »

Can you have embedded snippet tags. Lets say I want the whole page to be available for editing by admin and super accounts and within this,  page regions for regular accounts. So, my proposed structure would be:

<!-- #BeginSnippet name="Whole Page" --> .. non defined for admin and super accounts
This is for the whole page

<!-- #BeginSnippet name="Region1" users="someone"  -->
This is for a defined regular user (or users) and is limited to a specific block

<!-- #EndSnippet -->
Close the Region1 edit area

<!-- #EndSnippet -->
Close the Whole Page edit area

Or do I have to open and close each Snippet area as separate blocks so that the admin and super users can access every edit region as a separate areas, while the regular user only sees the block his account entitles him/her to.   
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1748

SnippetMaster Author


WWW
[-] Re: Embedded snippet tag
« Reply #1 on: Today at 11:46:49 AM »

Very interesting... you are talking about "nested" Snippet Tags, right?

I've never tested this, to be honest, and I don't know if it will work or not.  Best thing to do is try it out and see how it goes.

I think the only problem might be with how the software "finds" the snippet tags.  It will not display the file in the drop-down box for selection unless a "matching" snippet open and close tag are found.. and I'm not sure if having two opening snippet tags will be considered valid, since it will expect a closing snippet tag right after the opening one. 

Best thing is to try it out on a sample page and see if it works.

Let me know...  Smile

Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: Embedded snippet tag « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!