Loading...
 
Features / Usability

Features / Usability


Using tracket to create a page / assigning categories

I have created a tracker to collect information that will be used to create a page.
I have the basics working properly. I have one issue that I would appreciate help with.

I have included several category fields so the user can select them in the form.
Why? Because my users are almost all fairly helpless, and though I don't see why, the category interface confuses them.

Despite the fact I think they should be able to grasp the category interface, there is something to be said for setting as much as possible in one form, rather than asking them (anyone, really) to perform multiple steps, which can be more easily skipped or forgotten.

But I know that selecting them in the form will not assign the new page to the categories.
I presume there is no way to make that happen automatically. If I am wrong, by all means clue me in!

Does this sound like a reasonable feature request?
There could be a field in the tracker "assignCategories" and the user can enter a delimited list of categories. The values could be from the fields:

assignCategories = {$f_23}|{$f_23}|{$f_23}

This would only have an effect when outputtowiki is used, of course.

Shall I file it?

Suggested workarounds? The number of pages created per year will be very low.
1) I can set it so that the item is not discarded. As admin, I can periodically find the categories to set from the tacker entries, assign them manually, and then delete the tracker item.
2) I can discarded the item, and have an email sent to me for follow up when the item is added. The email would contain the page name and category IDs that I need to add. Is this possible to do as part of the pretty tracker template? I have not generated emails before, but I'm guessing this might already be a feature.

Thanks!!

Catalan Countries

I suggest that you fill in a feature request, hrsms, in the wish tracker:
https://dev.tiki.org/Make+a+Wish

And have a look at the options related to categories that you can see in the Categories Admin Panel in your tiki: tiki-admin.php?page=category (Admin home > Categories).

For instance, you can force some category to be assigned within a subtree of the whole category tree for wiki pages, or blog posts, etc. Or you can force some categories to be applied to a certain structure of wiki pages, so that when they create new pages within that structure, they get automagically categorized, etc.


United States

I'm not 100% clear on your actual use case, but (in addition to Xavi's comments about using the Force category option and structures) you can use the Quick Edit module to create a new page with a specific category. Please see the docs for details.

-R

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

To clarify the use case:

The site is for a ship model club.
I want to make a form that users can fill out to create a page for each of their models.
I tried using a wiki template (OldTemplate.jpg), but that confused them.

I've attached snaps of the tracker form (with outputtowiki option) I'm trying to use now.

There are many categories to which each page can be assigned. Vistors to our website can use categories to easily find models of a particular type, or to find models similar to the one featured on a page they are currently viewing. Each model varies, so I cannot statically set categories to be assigned.

I was sure that just collecting the categories in the form would not assign them to the page, but in fact it did! Sort of....

With one exception (build method, ID=153), categories I attempt to display on the form are not assigned, or at least they do not appear in the category plugin at the bottom. And those I do not attempt to display are assigned.

Secondary issue - the category ID is displayed, and I want to show the value. Possible?

Tertiary issue - if the field is not filled out, I'd like to skip it in the output template. I tried using "if" statements, but it did not work. Is this possible? If so, could you point me to a page that will explain how to do it?

Thanks again,

Greg


Regarding the secondary issue above: the category ID is displayed, and I want to show the value.

I already use PluginCatPath at the bottom. This works as desired. It lists all the categories for the object. In the body of the page I want to simply list the name of particular categories separately, as they are of primary interest. The intent of PluginCatPath is to list what categories the page belongs to, but I want to specify a category. For this, PluginCategory seems more appropriate.

I tried using PluginCategory, but this lists the objects in the category, and all I want is the name. I set the max objects to zero, but there is lots of unwanted whitespace. Also, I do not want the "Category:" prefix that is shown, and I do not see an option to omit it.

I will file a ticket for more options on PluginCategory.

United States
I tried using PluginCategory, but this lists the objects in the category, and all I want is the name. I set the max objects to zero, but there is lots of unwanted whitespace. Also, I do not want the "Category:" prefix that is shown, and I do not see an option to omit it.


This one is easy. You have two options:

  • Create a custom theme and customize the template (categobjects.tpl) as needed.
  • Add some custom CSS to hide the "category" label and control the spacing.

You might find my primer helpful.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.