[Solved] bookmarklets to access items, fields, types etc...

More
11 years 10 months ago #38672 by kath
hi there,

no question here, just thought i'd share what i hacked together:

With theses bookmarklets you can access access FC-pages from every BE-page inside every project, without creating project-specific bookmarks.

Just create a bookmarklet like these:
[items]
javascript:
var s_view = 'view=items';
var s_option = 'option=com_flexicontent&';
var s_index = '/index.php?';
var s_admin_folder = 'administrator';
var i_admin_length = s_admin_folder.length;
var url = ""+window.location;
var i_admin_strpos = url.indexOf(s_admin_folder);
var s_dest_url = ''+s_index+s_option+s_view;
var s_new_url = url.substr(0, i_admin_strpos+i_admin_length)+s_dest_url;
window.location = s_new_url;

[fields]
javascript:
var s_view = 'view=fields';
var s_option = 'option=com_flexicontent&';
var s_index = '/index.php?';
var s_admin_folder = 'administrator';
var i_admin_length = s_admin_folder.length;
var url = ""+window.location;
var i_admin_strpos = url.indexOf(s_admin_folder);
var s_dest_url = ''+s_index+s_option+s_view;
var s_new_url = url.substr(0, i_admin_strpos+i_admin_length)+s_dest_url;
window.location = s_new_url;

[generic]
For more just edit "var s_view = 'view=EDITHERE';"

I know it's very very basic, but maybe this is useful to someone.. :)

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

More
11 years 10 months ago #38674 by micker
yhanks for shareing

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.380 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