Welcome, Guest
Please Login or Register.    Lost Password?

SEF and templating
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: SEF and templating
#257
SEF and templating 6 Months, 3 Weeks ago  
Was just looking into the way jseblod handles templating and had a questions. One thing I liked about bContent (I was a beta tester, but it never ended up launching), was that it's templating was just like Joomla's template overrides and all normal article variables (link titles, author name, etc.) could be called using the same syntax. There was nothing in the back end to manage Joomla's article fields, but if you wanted them or not you would just code them in just like a template override. This was simple, and maintains consistency. Consistency I think is more important in the long run (beginners and advanced alike).

Aside from a minor gripe, I'm wondering if I can get better SEF than in the demo. Here's the code you're using for the article titles of the recipes:

Code:

        <a href="index.php?option=com_content&id=<?php echo $this->content->id;? >" title="<?php echo $this->content->title; ?>">
            <h3><?php echo $this->content->title; ?> </h3>
 </a>



But that gives a url like (for Mojito): demo.jseblod.com/drink-category/474.html

in Joomla's blog_item.php, the variable $this->item->readmore_link gives us a better SEF url that has the word mojito in it instead of just 474 (and an SEF extension would get rid of the 474).
unleash.it (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#259
Re:SEF and templating 6 Months, 3 Weeks ago  
Hi,

Yes you can actually call every Joomla article fields from your jSeblod Template:

Code:

 echo $this->content->title
or
Code:

echo $this->content->author


There are also special calls like this one:

Code:

echo $this->content->art_link

If we put this value in the href link instead of the one you found is the demo recipe template, the word "mojito" will appear in the url.


Another special one which allow you to access article edition with Site Form:

Code:

echo $this->content->editart_link


And of course you can also call every jSeblod Content Fields you have created:

Code:

echo $jSeblod->FIELDNAME->value


or other attributes of Content Fields:

Code:

$jSeblod->FIELDNAME->label 


jSeblod - Saba
jSeblod - Saba (Admin)
Administrator
Posts: 160
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Shanghai Birthday: 03/29
The administrator has disabled public write access.
Please vote & review our extensions on the JED if you like them: jSeblod CCK, jSeblod WYDIWYS Editor and jSeblod Little CCK.
Don't forget that your sup
 
#261
Re:SEF and templating 6 Months, 3 Weeks ago  
All very good. I'm glad that better SEF is possible then the demo. Does any sitemap extension yet support Jseblod? Will sh404SEF? The former is more important than the latter...

Thanks,

Jason
unleash.it (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1302
Re:SEF and templating 1 Month, 1 Week ago  
Hi,
I tried to do so in the Recipe template index.php, but then I get a parse error. Whe will the SEF topic be included in the recipe template?

thanks so much
gourmet (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1303
Re:SEF and templating 1 Month, 1 Week ago  
Hi Gourmet,

Sorry but thanks to post on jSeblod CCK forum:
www.jseblod-cck.com/forum

Best Regards.
jSeblod - Bes (Admin)
Admin
Posts: 340
graph
User Offline Click here to see the profile of this user
Gender: Male
The administrator has disabled public write access.
Please vote & review our extensions on the JED if you like them: jSeblod CCK, jSeblod WYDIWYS Editor and jSeblod Little CCK.
Don't forget that your support is our leitmotiv, thanks a lot.
 
Go to topPage: 1