Skip to main content

Questions tagged [template-scripting]

0 votes
1 answer
256 views

I had some working code within a template making use of the php variable $_SERVER['HTTP_ACCEPT'], to check for webp image format support from the user's browser. This was working fine, but after ...
Poultry in Motion's user avatar
0 votes
2 answers
634 views

I can't find a way to define a variable in a EE 2.10.1 Template file. I need to define a variable gv_desc only in some templates. There are some references but no one works: {global_var:gv_desc="bla ...
P.O.W.'s user avatar
  • 101
0 votes
1 answer
93 views

Is it possible (or even ideal) to template or even make a file manager within Expression Engine without access to the server? I was given the challenge to this recently with no success (and ALOT of ...
Greg's user avatar
  • 83
0 votes
0 answers
78 views

I want to do something like: $templates = ee( "Model" )->get( "Template" )->all(); //Loop through them foreach( $templates as $template ) ... But when I try this, it hangs the page/server. Is ...
Don Rhummy's user avatar
0 votes
1 answer
101 views

I"m setting up an xml template on an old site to use for importing to a new site via datagrab. Everything is working fine except when I try to output categories from one specific category group. When ...
CreateSean's user avatar
  • 4,747
0 votes
1 answer
352 views

I use php templates when I need to send notification emails to multiple people. Since upgrading to EE 2.10, I have noticed that when I echo the code, before the code that I am echoing, there is a ...
user1469's user avatar
  • 291
0 votes
2 answers
83 views

I am noticing a lot of extra blank lines for the lines where my template logic exists. I notice this mostly when I'm building javascript. How do I go about preventing this? Example: <script> ...
kambythet's user avatar
  • 113
1 vote
1 answer
91 views

EE 2.10.1 Stash 2.6.5 I'm trying to set up some shortcodes using Stash on a rebuild of my site where I formally was using MX Jumper to do the same thing. The code works fine except that the last ...
CreateSean's user avatar
  • 4,747
0 votes
1 answer
80 views

I am trying to check if a variable exists, and render it only if it does. Using the code below, the "{if facebook_content..." etc renders to the screen, curley braces and all, rather than actually ...
Ryan's user avatar
  • 101
1 vote
1 answer
107 views

I have a low search filter set up which works great however the client now wants to separate the results by country of origin. This should be possible as the country is set by another custom field. ...
CreateSean's user avatar
  • 4,747
0 votes
0 answers
246 views

I'm building out a multiple page channel form which was working fine until I got to where I need to use a Grid/Matrix field. I was unable to find documentation on how to customize the look of Grid so ...
CreateSean's user avatar
  • 4,747
1 vote
0 answers
146 views

I'm building a site where I'm having trouble wrapping my head around the logic needed to accomplish what I would like to do. I have three channels: Brands, Regions, Business Unit. Brands have a ...
CreateSean's user avatar
  • 4,747
4 votes
1 answer
252 views

I've just discovered that all of the templates I'm saving to the filesystem are accessible through the browser if the name is known, and now I've got a case of the screamin' heebie jeebies. For ...
Andy's user avatar
  • 515
0 votes
2 answers
168 views

I need to pass a list of the first level of categories to a nested switchee. The following works when I manually place the nested list. However I would like the client to be able to add/edit ...
CreateSean's user avatar
  • 4,747
2 votes
2 answers
1k views

SUMMARY: I need to access an element in an array that is passed to a template from a module and test for it's existence. I have a function in a module that looks like this: function subscriptions(){ ...
RobKohr's user avatar
  • 121

15 30 50 per page