Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 19th, 2012, 09:43 AM
lesljr lesljr is offline
 
Join Date: Jan 2012
Posts: 80
Default [category.slug] in text module

how can i access [category.slug] in a text module?
  #2  
Old March 19th, 2012, 09:52 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

You'll need to use this:
Code:
<?php echo $category->slug; ?>
Eric
  #3  
Old March 19th, 2012, 12:32 PM
lesljr lesljr is offline
 
Join Date: Jan 2012
Posts: 80
Default

that worked. how about the current page? I would like to pass the url to a php function
  #4  
Old March 19th, 2012, 12:46 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

You can find all of the variables you have access to by adding this code to your view:

<pre><?php print_r($category); ?></pre>
  #5  
Old March 19th, 2012, 12:59 PM
lesljr lesljr is offline
 
Join Date: Jan 2012
Posts: 80
Default

here is what it returned. look at http://autotulsablog.com/2011/10/22/...eering-wheels/ on the bottom of the page

dfr_null Object
(
[is_null] => 1
)
  #6  
Old March 19th, 2012, 01:05 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

That will only return something IF you are in a category. If there is no category, the $category object will be NULL.
  #7  
Old March 19th, 2012, 01:07 PM
lesljr lesljr is offline
 
Join Date: Jan 2012
Posts: 80
Default

yeah, I just noticed that. I changed the variable to $server and it didn't return anything. Is server spelled server or Server?
  #8  
Old March 19th, 2012, 01:22 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

It's case insensitive as far as I know.
  #9  
Old March 19th, 2012, 01:34 PM
lesljr lesljr is offline
 
Join Date: Jan 2012
Posts: 80
Default

ok. I tried to use $server as a parm and it didn't return anything.

<pre><?php print_r($server); ?></pre>

I tried take [server.url type='fullpage'] and convert to $server->url[fullpage] with no sucess.
  #10  
Old March 19th, 2012, 01:42 PM
lesljr lesljr is offline
 
Join Date: Jan 2012
Posts: 80
Default

nevermind, i have a work around
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Post contents of Text module in Default Category View dwoodward2 Questions 1 January 26th, 2011 08:56 PM


All times are GMT -5. The time now is 12:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.