Loading...
 
Features / Usability

Features / Usability


Adding a function to the edit menu

posts: 14

Hello every1,

I am working on a task that consists of adding a new feature to the tiki. The website has a module with the last news (manually entered for the moment) and in this context we would like to have a function like "add to the news module" in the edit menu. So the idea is to have the possibility to add the page that you are changing or the page that you are creating automatically to this news module. If anyone has an idea of how this could be done, or some kind of an alternative eventually I would be happy to read it.

Thank You

posts: 3665 United States

I'm not 100% I understand, but I'll try to help anyway... wink

Create a menu item that would let users add content to an existing module, right?

You could:

  1. Give the user the tiki_p_configure_modules permission
  2. Create a new menu item with the URL:
    tiki-admin_modules.php?um_edit=MODULE_NAME#editcreate
  3. Assign the new menu item to a the user.


Now, the user will have a menu item "Add to the news module" which will open the module in edit mode.

Am I close to what you wanted?

-Rick


> Hello every1,
>
> I am working on a task that consists of adding a new feature to the tiki. The website has a module with the last news (manually entered for the moment) and in this context we would like to have a function like "add to the news module" in the edit menu. So the idea is to have the possibility to add the page that you are changing or the page that you are creating automatically to this news module. If anyone has an idea of how this could be done, or some kind of an alternative eventually I would be happy to read it.
>
> Thank You

posts: 14

I think it's a good suggestion but the problem is that I don't see the tiki_p_configure_modules permission.
Is it possible that it's not included in my version?...well yes I guess it's that...
And another thing: is there some way to add this as a button somewhere in the edit page menu instead of creating
a separate menu with this function only?

Thx a lot 4 the reply btw biggrin

posts: 14

> I think it's a good suggestion but the problem is that I don't see the tiki_p_configure_modules permission.
> Is it possible that it's not included in my version?...well yes I guess it's that...
> And another thing: is there some way to add this as a button somewhere in the edit page menu instead of creating
> a separate menu with this function only?
>
> Thx a lot 4 the reply btw biggrin


Found the tiki_p_configure_modules

Sorry bout that

The second question remains tho :-)

posts: 3665 United States

> > Is it possible that it's not included in my version?...well yes I guess it's that...
> > And another thing: is there some way to add this as a button somewhere in the edit page menu instead of creating
> > a separate menu with this function only?
> >


Yes, you can hardcode the link the tiki-editpage.tpl template.

HTH,

-Rick


posts: 257 United States

Now I've taken a different approach on my site that should meet your need for the module to updated automatically. If you create a Blog in which to enter your news items, you can then create an RSS feed of the blog and include it in a user module. I also find the blog style to be a nice format for news items.

Now, RSS feeds are used traditionally so other websites to include your auto-updated material -but any RSS feed of your site's content can be used internally in wiki pages and in modules!

After creating the blog, create an RSS feed of the blog (under Admin/RSS modules). Now create a user module (or use an existing user module) and include
where the underlines are replaced with the number of the blog's RSS feed and the value for the maximum number of items to be displayed.


Tiki does a nice job of then giving you an automatically updated list of the titles of the last n number of news items (as defined by "max") right in your module! Now all you have to think about is posting your news items in the blog.

Bonus round: Rss feeds are also a nice way to include a little summary of image and file gallery uploads and Calendar events in modules or on pages around your site.


posts: 14

the blog is not such a bad idea but I don't want having the news in the center of the page...they're not that important. That's why I would prefer to keep them in a small module on the right side. So what I actually want is users from a certain group to be asked if they want to have the page they are editting or the page they are creating added to the news module. The first solution proposed was quite close to what I wanted but the thing is that it would be even better if I can have it as an option or a button in the editpage.

Thx for all your posts :-)

posts: 3665 United States

I think I have a better idea of what you're doing.... you want to give folks the chance, when they are editing a wiki page to have it added to a "news module" — automatically. Right?

This is a piece of cake.... if you're using categories

  1. Create a new category. Call it Add to News or something similar. Record the category ID.
  2. Create a new module.
  3. Edit the new module, adding the following:
    Copy to clipboard
    {CATEGORY(id=>CC)}{CATEGORY}

    Where XX is the category ID from step 1.
    Note: Make sure you have selected the Must be wiki parsed option.
  4. Assign the module to your layout.


Now, when a user edits a wiki page, all they have to do is categorize the page in the Add to News category and it will automatically appear in the module.

HTH,

-Rick


> the blog is not such a bad idea but I don't want having the news in the center of the page...they're not that important. That's why I would prefer to keep them in a small module on the right side. So what I actually want is users from a certain group to be asked if they want to have the page they are editting or the page they are creating added to the news module. The first solution proposed was quite close to what I wanted but the thing is that it would be even better if I can have it as an option or a button in the editpage.
>
> Thx for all your posts :-)

posts: 14

> I think I have a better idea of what you're doing.... you want to give folks the chance, when they are editing a wiki page to have it added to a "news module" — automatically. Right?
>
> This is a piece of cake.... if you're using categories
>
> # Create a new category. Call it Add to News or something similar. Record the category ID.
> # Create a new module.
> # Edit the new module, adding the following:

> +
Copy to clipboard
> {CATEGORY(id=>CC)}{CATEGORY} >

> +Where XX is the category ID from step 1.
> +Note: Make sure you have selected the Must be wiki parsed option.
> #Assign the module to your layout.
>
> Now, when a user edits a wiki page, all they have to do is categorize the page in the Add to News category and it will automatically appear in the module.
>
> HTH,
>
> -Rick



That's exactly what I want to do.biggrin The only problem is that I can't find the categories menu in the admin menu. I guess it is due to the fact that groups were already used on the website...What do u think about that?


>
>
> > the blog is not such a bad idea but I don't want having the news in the center of the page...they're not that important. That's why I would prefer to keep them in a small module on the right side. So what I actually want is users from a certain group to be asked if they want to have the page they are editting or the page they are creating added to the news module. The first solution proposed was quite close to what I wanted but the thing is that it would be even better if I can have it as an option or a button in the editpage.
> >
> > Thx for all your posts :-)

posts: 3665 United States

>
>
> That's exactly what I want to do.biggrin The only problem is that I can't find the categories menu in the admin menu. I guess it is due to the fact that groups were already used on the website...What do u think about that?
>
>

Do you have the Category feature turned on?

-Rick

posts: 14

Everything seems to be alright - the feature was not turned on as u said.

Three more questions:

1. Where is the category ID and how can I see/change it?
2. Where can I find the Must Be A Wiki Parced option?
3. What will actually appear in the module? I hope it won't be the whole wiki page...I mean is there a way to put just the date and the link or the title of the page or something like that, I think u get my drift.



Thx a lot 4 the reply, great solution :-)

posts: 3665 United States

> Everything seems to be alright - the feature was not turned on as u said.
>
> Three more questions:
>
> 1. Where is the category ID and how can I see/change it?

Unfortunately, I don't think that the category ID is actually displayed in any templates. However, simply go to the admin page and view the page's HTML source. In the selection area for the category, you'll see the ID number.

> 2. Where can I find the Must Be A Wiki Parced option?

It is a the bottom of the Create Module form. See the docs.


> 3. What will actually appear in the module? I hope it won't be the whole wiki page...I mean is there a way to put just the date and the link or the title of the page or something like that, I think u get my drift.
>

It will simply list (and link to) the wiki pages in the category. You can sort them chronologically if you want.

>
>
> Thx a lot 4 the reply, great solution :-)


HTH,

-Rick
-My Tiki Blog: Help, Hints, and Hacks

posts: 14


I don't have the Must Be A Wiki Parced option. Maybe it's because of the version but what I know is that I don't have it.
Is it that important? If it is I will have to migrate to another version. What it does actually?


posts: 5
i just wanted to thank those who contributed to this section, i have been needing something along these lines.

posts: 14

Apart of the Must Be A Wiki Parced option I am still having a problem - with the category ID. I can't find it or at least I can't find the right one. If you need a part of the HTML code just let me know.

Thx

posts: 3665 United States

> Apart of the Must Be A Wiki Parced option I am still having a problem - with the category ID. I can't find it or at least I can't find the right one. If you need a part of the HTML code just let me know.
>


What Tiki version are you running? I'm pretty sure that you're going to need the Must Be Wiki Parced option in order to include the plugin in the module.


To find the category ID:

  1. Go to your Admin Categories page (../tiki-admin_categories.php).
  2. View the HTML source of the page.
  3. Look for the code that includes the DELETE button and note the HREF shown. It should have something like &removeCat=XX. The XX is the ID for that category.


If you're still having problems, send me the page.

HTH,

-Rick
-My Tiki Blog: Help, Hints and Hacks

posts: 14
it's version 1.8.6
posts: 3665 United States

> it's version 1.8.6

Ah... the 1.8 branch is very old — I encourage you to upgrade. You'll get more options, better performance, and tighter security.

I am unfamiliar with the 1.8 stuff, sorry.

-[http://www.keycontent.org|Rick
-My Tiki Blog: Help, Hints and Hacks

posts: 14

> > it's version 1.8.6
>
> Ah... the 1.8 branch is very old — I encourage you to upgrade. You'll get more options, better performance, and tighter security.
>
> I am unfamiliar with the 1.8 stuff, sorry.
>
> -[http://www.keycontent.org|Rick
> -My Tiki Blog: Help, Hints and Hacks

Okay...I'll have to upgrade then...Any ideas how much time would it take or how much time the website should be closed, is it a comlicated process or it quite simple?

posts: 14
I've been checking out the docs and the forums for a couple of hours now and as it seems I'll need some help on this. As I saw every1's having problems with upgrading, god knows why there is no automatic upgrade, but the thing is that I don't think I would be able to do this on my own as I can understand a damn thing about the whole process...so if any1 has an idea of how the upgrade is done and think it could be explained as simple as possible...please drop a line
posts: 3665 United States

>
> Okay...I'll have to upgrade then...Any ideas how much time would it take or how much time the website should be closed, is it a comlicated process or it quite simple?

It should be pretty easy. See the docs for details].

Running the actual upgrades script will take only a few minutes, depending on the size of your database. If you've made any customizations, you'll need to forward-port them, too.

-[http://www.keycontent.org|Rick
-My Tiki Blog: Help, Hints and Hacks