Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Multi-level Category Functions

 

First page Previous page 1 2 3 Next page Last page  View All


Jason
Staff / Moderator


Jan 3, 2011, 1:38 PM

Post #51 of 63 (10683 views)
Shortcut
Re: [Maurice] Multi-level Category Functions [In reply to] Can't Post

Hi Maurice,

I'm not sure I understand the problem. Can you provide a url so I can see what you're working with?

thanks
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


Maurice
User

Jan 3, 2011, 2:00 PM

Post #52 of 63 (10681 views)
Shortcut
Re: [Jason] Multi-level Category Functions [In reply to] Can't Post

yep this is it:

http://is.sandbox.intraserve.biz/includes/categoryList.php the output is oke but links to the right location not working.
-------------------------------------------
www.intraserve.nl

Soon! cmsBy.intraserve


Jason
Staff / Moderator


Jan 3, 2011, 2:08 PM

Post #53 of 63 (10680 views)
Shortcut
Re: [Maurice] Multi-level Category Functions [In reply to] Can't Post

Hi Maurice,

Which page do you want it to be linking to? If you're just using the ['_link'] field, you can change where this goes by editing your section and clicking on Viewer Urls.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


Maurice
User

Jan 3, 2011, 2:16 PM

Post #54 of 63 (10679 views)
Shortcut
Re: [Jason] Multi-level Category Functions [In reply to] Can't Post

aha so i can ad a field lets say links?? and than link to any viewer?

Thats coo Wink
-------------------------------------------
www.intraserve.nl

Soon! cmsBy.intraserve


Maurice
User

Jan 3, 2011, 2:19 PM

Post #55 of 63 (10678 views)
Shortcut
Re: [Maurice] Multi-level Category Functions [In reply to] Can't Post

mmm wait ['_link'] i don't get that. is see it in the code but cant find the relation to the sections.
-------------------------------------------
www.intraserve.nl

Soon! cmsBy.intraserve


Jason
Staff / Moderator


Jan 3, 2011, 2:36 PM

Post #56 of 63 (10671 views)
Shortcut
Re: [Maurice] Multi-level Category Functions [In reply to] Can't Post

Hi Maurice,

You could create a textfield in your section called link where you can put a different url for any record that you want to link to:

EXAMPLE:

Code
 <a href="<?php echo $category['link'];?>"><?php echo $category['name'];?></a>


['_link'] is used when you want every record in the section to link to the same detail page.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/ 


zick
User

Aug 21, 2011, 11:24 PM

Post #57 of 63 (7517 views)
Shortcut
Re: [mohabsi] Multi-level Category Functions [In reply to] Can't Post

Hey mohabsi,
Thanks for sharing this... it's exactly what I needed to get my drop down categories working.
Zick


In Reply To
hi chris,

sorry i try the code but not work
i solve the problem with other way


Code
 
<div class="glossymenu">

<?php foreach ($categoryRecords as $categoryRecord): ?>
<?php if ($categoryRecord['depth'] == 0): ?>
<a href="<?php echo $categoryRecord['_link'] ?>" class="menuitem submenuheader"><?php echo $categoryRecord['name'] ?></a>
<?php $parent=$categoryRecord['num'];?>
<ul class="submenu">

<?php foreach ($categoryRecords as $categoryRecord): ?>
<?php if ($categoryRecord['parentNum'] == $parent): ?>
<li><a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a></li>
<?php endif ?>
<?php endforeach; ?>

</ul>
<?php endif ?>
<?php endforeach; ?>
</div>


and thanks again for your efforts



jacgo
User

Dec 16, 2011, 4:28 PM

Post #58 of 63 (4373 views)
Shortcut
Re: [Dave] Multi-level Category Functions [In reply to] Can't Post

HI Dave

About "Category Function"
I tried to figuare it out. and created the page categoryList.php on our site.

Nothing happen.

http://www.ctrbs.org/categoryList.php

My cmsBuilder version is 2.07

I created a "Category" Section and give it some record.

My "Viewer URL"
List Page Url - categoryList.php
Detail Page Url - categoryList.php

and use the file which you propose : categoryList.php.

http://www.ctrbs.org/categoryList.php

Can you tell me where error code?

thanks!

I have 3 cmsAdmin account. but still dont' understand what it is and how to do "Category Menu" for my site.
Hope there have detail intro for the function.

It would be very appreciate!!
Thanks!

Jacgo


Dave
Staff / Moderator


Dec 16, 2011, 4:31 PM

Post #59 of 63 (4372 views)
Shortcut
Re: [jacgo] Multi-level Category Functions [In reply to] Can't Post

Hi Jacgo,

Can you attach your categoryList.php file to this post so I can see your code? Thanks!

Dave Edis - Senior Developer
interactivetools.com
 


jacgo
User

Dec 16, 2011, 5:06 PM

Post #60 of 63 (4369 views)
Shortcut
Re: [Dave] Multi-level Category Functions [In reply to] Can't Post

Hi Dave

Please kindly see attachment.

Jacgo


(This post was edited by jacgo on Dec 16, 2011, 5:10 PM)
Attachments: categoryList.php (2.34 KB)


Dave
Staff / Moderator


Dec 19, 2011, 4:09 PM

Post #61 of 63 (4226 views)
Shortcut
Re: [jacgo] Multi-level Category Functions [In reply to] Can't Post

Hi Jacgo,

Try changing this line:
require_once "C:/wamp/www/sb/core2/admin/lib/viewer_functions.php";

To this:
require_once "cmsAdmin/lib/viewer_functions.php";

Let me know if that works for you. Thanks!

Dave Edis - Senior Developer
interactivetools.com
 


jacgo
User

Dec 19, 2011, 4:22 PM

Post #62 of 63 (4223 views)
Shortcut
Re: [Dave] Multi-level Category Functions [In reply to] Can't Post

Hi Dave

http://www.ctrbs.org/categoryList.php

it's looks good & thanks for your help.


-Jacgo


Dave
Staff / Moderator


Dec 19, 2011, 4:26 PM

Post #63 of 63 (4222 views)
Shortcut
Re: [jacgo] Multi-level Category Functions [In reply to] Can't Post

No problem, let us know if you have any other questions (just post a new thread). Thanks!

Dave Edis - Senior Developer
interactivetools.com
 

First page Previous page 1 2 3 Next page Last page  View All