Hello again everybody,
Is there standard images available in cmsms for things like "Add" "Edit" "Delete" that can be used in conjuction with ->CreateLink function. I ask as i would like my admin interface at least to comply with the general look at feel of cmsms. Also what would be the best method for using them ?
(this is for ShopMadeSimple)
G
Standard images and buttons ?
Re: Standard images and buttons ?
There are some images available
take a look at listcontent.php
$image_true = $themeObject->DisplayImage('icons/system/true.gif', lang('true'),'','','systemicon');
and so on
hope this helps
take a look at listcontent.php
$image_true = $themeObject->DisplayImage('icons/system/true.gif', lang('true'),'','','systemicon');
and so on
hope this helps
- Elijah Lofgren
- Power Poster
- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
- Location: Deatsville, AL
Re: Standard images and buttons ?
And to get $themeObject use this:tsw wrote: There are some images available
take a look at listcontent.php
$image_true = $themeObject->DisplayImage('icons/system/true.gif', lang('true'),'','','systemicon');
and so on
hope this helps
Code: Select all
$themeObject = $gCms->variables['admintheme'];
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 

-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Standard images and buttons ?
we really need to do something about this...
I wanted to include some funky icons in some of my links, like News does, but it was a huge jumble of code, and the only way I could figure out how to get it to work was copying/pasting the code, and carefully modifying just the strings I want.
too many quotes, and dots, and brackets.
We need something simpler.... maybe a GetIcon() and a GetThemeIcon() method or something.
I wanted to include some funky icons in some of my links, like News does, but it was a huge jumble of code, and the only way I could figure out how to get it to work was copying/pasting the code, and carefully modifying just the strings I want.
too many quotes, and dots, and brackets.
We need something simpler.... maybe a GetIcon() and a GetThemeIcon() method or something.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Standard images and buttons ?
I'll give that a go and agree with calguy1000 (i'm doing that allot lately) if we want to keep the admin interfaces standard thoughout all modules (ideal) we should provide easy methods and possibly specify some standards......
What in everybody's opinion would be the best way to manage the category tree in the admin section ?
I'm trying several methods but in this case ajax would have been ideal. This also brings me to another thing, we have xajax available in the smarty libraries, could we not just harnase that for use within cmsms ?
G
What in everybody's opinion would be the best way to manage the category tree in the admin section ?
I'm trying several methods but in this case ajax would have been ideal. This also brings me to another thing, we have xajax available in the smarty libraries, could we not just harnase that for use within cmsms ?
G
Re: Standard images and buttons ?
If something new is implemented, my suggestion is to first have something like CakePHP's HTMLHelper::image() (http://api.cakephp.org/class_html_helpe ... 5dd58f04b3)? Only three function arguments: $path, $htmlattributes and $return. Simple as that 
And then maybe we could have a more intelligent method AdminTheme::GetIcon(), which accepts only a string and from that finds the proper image, fills in alt='', etc. on it's own.
arwan.

And then maybe we could have a more intelligent method AdminTheme::GetIcon(), which accepts only a string and from that finds the proper image, fills in alt='', etc. on it's own.
arwan.