![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Hello,
I have discovered, quite by accident, that adding categories and sub-categories makes use of a delimiter for multiple entries: PHP Code:
PHP Code:
PHP Code:
PHP Code:
So my tip is the above, and my question is this: Is there a delimiter in place to allow for multiple entries when adding categories and subcategories? |
#2
|
|||
|
|||
![]() Yes the slash allows for one under one under and so on, unfortunately doesn't simply allow all one under so have to move them, but is still quicker than typing them all in.
|
#3
|
||||
|
||||
![]() Not currently.
__________________
![]() ![]() ![]() ![]() |
#4
|
|||
|
|||
![]() perhaps you could add a delimiter. I am not entirely sure what you programmed everything in, nor how difficult it would be to add a delimiter.
Maybe a simple php explode on | would work along with a basic foreach with the SQL insert. ie: PHP Code:
You would, of course, fix it to fit the tables used, error checking, etc. |
#5
|
|||
|
|||
![]() preg_split() is another method to use if you want more control as well as preg_match_all().
Point is..lots of ways to do it. explode can be more memory intensive then the above two options. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding Multiple Category | johnpo | Questions | 2 | June 12th, 2011 08:05 PM |
How do I make the Category Menu in the Atahualpa Theme reflect the datafeedr category | cgarvey | Questions | 1 | March 24th, 2011 01:45 PM |
No Meta Data and Category Desciption on Default Category Page View | cashnow | Problems | 5 | February 4th, 2011 11:08 AM |
How do I make a category view for my sidebar that only includes one main category? | dcutri | Questions | 3 | January 26th, 2011 01:40 PM |