Notifications template

More
11 years 9 months ago #39678 by ggppdk
Replied by ggppdk on topic Notifications template
Hello,

same notifications are sent for both backend and frontend, so it was more convenient to place it backend (due to frontend item form already loading backend language file)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39684 by brandonking
Replied by brandonking on topic Notifications template
Yes I know that front end form is using backend language file and this cause some trouble for me.
Both Front-end form and Notification's language file should be located in frontend, not backend I guess. :(

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39686 by brandonking
Replied by brandonking on topic Notifications template
In FlexiNotify plugin, I want to add Menu Item ID into below url(view item for public, not edit form).
Code:
JRoute::_( JURI::root(false).FlexicontentHelperRoute::getItemRoute($item->id, $item->catid));

Thank you.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39692 by ggppdk
Replied by ggppdk on topic Notifications template
hello

add a parameter named
forced_itemid

and replace the url code with:
$forced_itemid = (int)$params->get('force_itemid',0);
$url = JRoute::_(JURI::root(false).FlexicontentHelperRoute::getItemRoute($item->id, $item->catid, $forced_itemid));


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39727 by brandonking
Replied by brandonking on topic Notifications template
Well, I have 5 different menus...means 5 different TYPEs.
Your solution won't fix my problem I guess..and that's why I have asked you to consider adding Forced Itemid manually for each TYPE.

So that we can call a function in Route.php to get Forced Itemid.(if you add a function for this.)

Regards,

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #39741 by ggppdk
Replied by ggppdk on topic Notifications template
Hello

-- i see the need/logic behind of this

yes we can add a parameter per content type
.. and the SEF creating funstion getItemRoute
in helpers/route.php

-- also we can add a second parameter to PREFER content type menu-item over the category menu item (when both exist)

but this is the easy part of it,

if we add an SQL query per content item to get the type id
for every URL created,
then a content list with 100 items, will make 100 more SQL queries,
so it is better to update the FlexicontentHelperRoute::getItemRoute()
and add a 4th extra (optional) parameter : $type_id

-- but this involves:
1. updating about 70-80 functions calls in FLEXIcontent code and a few SQL queries !!,

2. old custom template will simply use the old behavior so they are not a problem

-- of course above URLs include:
1. ALL views,
2. ALL item/category layouts of templates
3. pagination plugin (next previous article),
4. search/advanced plugins(search view item lists),
5. XMAP plugin,
6. modules,
7. system plugins redirecting from com_content

Can you spent some quality time testing?

i mean whatever you have on your site,
e.g. you don't need to test XMAP plugin

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.831 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save