Snippets are small bits of reusable template or tag parts in ExpressionEngine.

learn more… | top users | synonyms

2
votes
2answers
50 views

Seg2Cat blank values

I've installed (new) seg2cat on a new EE upgrade (2.7.2) and it isn't behaving as expected: (1.143091 / 6.09MB) Snippets (Keys): ...
2
votes
2answers
59 views

Snippet inside snippet not rendering

On a template I am calling in a series of snippets like so: {sn-head} {sn-header} {sn-page} {sn-listing-videos} {sn-footer} The sn-listing-videos snippet contains an entries loop like so: ...
0
votes
2answers
45 views

Wrong PHP parsing order in snippet

I'm trying to parse a global variable inside a snippet that represents my page footer, and I want to perform a string function on the content of that variable. The snippet is being called into a ...
2
votes
1answer
37 views

Where are EE's native Snippets saved, locationwise?

I just moved a site to another server and duh! forgot to copy over the Snippets manually. Don't ask. I have a full backup though, ftp as well as sql. Now I am wondering where the native EE Snippets ...
1
vote
1answer
40 views

Is it possible to place an embedded template within a snippet?

Is it possible to place an embedded template within a snippet? Reason is I have a client that wants to be able to use the Allow More EE Code plugin http://devot-ee.com/add-ons/allow-more-ee-code to ...
0
votes
2answers
77 views

Strange parsing issue after switching from embeds to Low Variables snippets

My coworker and I are baffled by a recent issue that came up when we switched all of our embeds over to Low Variables. The weirdest part is that the issue is happening on his machine, not mine, and we ...
0
votes
1answer
124 views

Can snippets contain PHP?

The documentation says: Snippets are expanded at a very early stage on each template, making it possible for them to hold dynamic content, ExpressionEngine tags, other variables, PHP, etc. ...
0
votes
2answers
71 views

Snippet Syncing not working

I am building an html5 theme into expression engine. The theme came with a lot of JS that wasnt needed and it slows the pages down. When initially building the theme into expression engine i broke the ...
1
vote
0answers
36 views

Snippets (snippetsync) only parse when logged in

It seems that some newly created snippets using SnippetSync (version controlled and uploaded via GIT/Beanstalk) begin parse only after I log into the control panel. After a day or so these snippets ...
1
vote
2answers
116 views

Is there a way to change the parse order of snippets or plugins?

Is there a way to force snippets or plugins to be parsed late or at least after advanced conditionals are parsed?
0
votes
1answer
69 views

Playa with conditionals and snippets

I seem to have a problem with Playa + conditionals + snippets. I've emailed P&T since it may be an error in Playa. I'm trying to accomplish a listings page where the information displayed depends ...
5
votes
3answers
181 views

Breaking my HTML into tiny pieces - template, snippets, or globals?

In order to maximize code reuse, I'm trying to break down the mark up for each of my form fields into individual "containers" (e.g. a template, snippet, global). The project I am working on is ...
3
votes
2answers
88 views

Is there a way to define snippets in the index.php or config.php file?

I'd like to define snippets dynamically in the index.php file. Is there a way to do this?
2
votes
2answers
86 views

Why isn't this snippet + Zoo Triggers working?

I have a set of "category" pages such as: Dining (example.com/dining) Nightlife (example.com/nightlife) We are using Zoo Triggers to filter out the categories appropriately. I am using a snippet ...
2
votes
1answer
179 views

EE conditionals within javascript snippet

I am trying to use EE conditional statement within Javascript. The Javascript is called through a EE snippet. Part of the problem is I am using js conditionals right below my EE conditional. Is this ...
1
vote
2answers
229 views

Email encode tag Javascript issues

I use {encode="{webmaster_email}" title="Send E-Mail"} to hide my email address from harvester bots. When I use this code within my template all is fine. This code is also part of the footer. The ...
4
votes
5answers
219 views

What add-on/method do you use to create snippets as files? [closed]

For version control purposes, it's better to store snippets as files. What add-on or method would you recommend?
5
votes
4answers
322 views

Why is this Low Variable in a snippet not parsing?

I have a snippet that I use on nearly every page of a site. I need to give the admins some control in the fallback source of an image in that snippet. Now I know there is a parse order issue here as ...
9
votes
2answers
500 views

What is the difference between a global variable, a snippet and an embedded template?

What is the difference between a global variable, a snippet and an embedded template? When and where should I be using each of them?