... I’m just going to go ahead and /facepalm myself for lack of reading comprehension. I read Module in place of Extension, so I totally skipped the extension enabling.
Thanks for the Clue. I’ll use it wisely.
/facepalm
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 21, 2007 10:20am
Subscribe [24]#61 / Aug 15, 2008 4:52pm
... I’m just going to go ahead and /facepalm myself for lack of reading comprehension. I read Module in place of Extension, so I totally skipped the extension enabling.
Thanks for the Clue. I’ll use it wisely.
/facepalm
#62 / Aug 15, 2008 4:55pm
:-D Don’t facepalm too hard, it’s Friday!
#63 / Dec 06, 2008 8:01pm
Or if you want to use a variable as a tag parameter. {news_weblogs} could be a list of dozens of weblogs you have on a media site, and perhaps this list even changes or grows regularly. All of your templates can benefit from this without having to update them as well by using:
{exp:weblog:entries weblog="{news_weblogs}"}
I’m jumping in on this thread late, but I’ve heard so much about Fresh Variables and how great it is, but I still can’t wrap my head around a lot of it’s uses. I understand how it could greatly benefit the date formatting in that you would only have to change it in one place rather than all over your site, assuming you wanted to change the formatting site wide.
What I’m having trouble wrapping my head around is the example you gave above, Derek. Actually, the light bulb may have just lit up as I’m reading this again. lol. With your example above, assuming your weblog=”” parameter contains results from all weblogs, so maybe something like this: weblog=“blog|gallery|news”. You could use a Fresh Variable called {news_weblogs} and the actual variable value would be “blog|gallery|news.” Is that correct?
#64 / Dec 07, 2008 12:42am
Yes, that’s correct Deron. I used it tonight to help with the status parameter. If you have have a bunch of statuses, before, you’d have to literally write out the statuses (Draft|Production|etc…) within the EE tags. Multiple weblog tags using the status parameter ended up being a headache if you added a new status. With FV’s, you have one location to change it.
Don’t leave it to just parameters though, because there are many other uses. Derek’s Behind the Curtains II is an example. In that article, he discusses global variables, but GV’s won’t work with the multi site manager. Since FV’s work with MSM, they’re the perfect substitute.
#65 / Dec 07, 2008 12:46am
Thanks Stephen for the info! I’ll check out Derek’s Behind the Curtains II also.
#66 / Dec 07, 2008 7:02am
Yes, that’s correct Deron. I used it tonight to help with the status parameter. If you have have a bunch of statuses, before, you’d have to literally write out the statuses (Draft|Production|etc…) within the EE tags.
Sorry to pop in like this but if you want all your statuses and don’t want to type them out then I made a plugin a while back that deals with that :
Just thought it might help somewhere.
Best wishes,
Mark
#67 / Feb 13, 2009 9:32am
Whats the actual difference betwen EE global variables and fresh variables module?
Whats the benefit?
I’d like to use variables in my stylesheet files but it seems like they’re not supported there. Is there any solution for this?
I want to have {default_site_image_url) that would be url to the static site images.
Any idea?
Thanks a lot for help!
#68 / Feb 13, 2009 10:20am
Fresh variables are parsed at a different time. They can themselves contain other PHP or EE code, even variables. If you want to use variables in your .css files, use {path=} instead of {stylesheet=}.
#69 / Mar 05, 2009 1:03am
Would it be possible to make this into a SAEF so i can allow people to unknowingly post information into a variable i decide???
#70 / May 20, 2009 3:43am
Does anyone use Fresh Variables to hold parts of a static template rather than in a template group which is accessed across MSM?
I assume one downside is that you can’t pass variables to it.
#71 / May 28, 2009 10:16am
What sort of EE code can be used with FV? Can it include weblog entries?
#72 / May 28, 2009 7:20pm
I would like to see a tutorial where fresh variables is used. I’m sure it’s powerful and helpful, but I just haven’t had a lightbulb moment with it so don’t use it.
#73 / May 28, 2009 9:55pm
I’ve tried to use it maybe 4 times, thought I needed to use it twice, and ended up after using it in various ways taking it out every time and doing it some other way. I guess I don’t get it either.
#74 / May 28, 2009 10:00pm
Brian,
good to hear someone else also doesnt’ get it. I’ve tweeted a request for a screencast/tutorial as well.
#75 / May 28, 2009 10:28pm
IMHO if you have to look that hard to find a use for them, you don’t need them.
I’ve only ever used Fresh Variables on a MSM install where I wanted what essentially amounted to {homepage} variables for all 3 sites that were available in any site.