Standard images and buttons ?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
Lahuindai
Forum Members
Forum Members
Posts: 66
Joined: Mon Aug 01, 2005 11:00 am

Standard images and buttons ?

Post by Lahuindai »

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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: Standard images and buttons ?

Post by tsw »

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
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: Standard images and buttons ?

Post by Elijah Lofgren »

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
And to get $themeObject use this:

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. :)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Standard images and buttons ?

Post by calguy1000 »

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.
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.
User avatar
Lahuindai
Forum Members
Forum Members
Posts: 66
Joined: Mon Aug 01, 2005 11:00 am

Re: Standard images and buttons ?

Post by Lahuindai »

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
arwan

Re: Standard images and buttons ?

Post by arwan »

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.
Post Reply

Return to “Developers Discussion”