Page 1 of 1

Standard images and buttons ?

Posted: Fri Aug 18, 2006 2:17 am
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

Re: Standard images and buttons ?

Posted: Fri Aug 18, 2006 9:11 am
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

Re: Standard images and buttons ?

Posted: Sat Aug 19, 2006 2:49 am
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'];

Re: Standard images and buttons ?

Posted: Sat Aug 19, 2006 3:59 am
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.

Re: Standard images and buttons ?

Posted: Sat Aug 19, 2006 7:14 am
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

Re: Standard images and buttons ?

Posted: Wed Aug 23, 2006 4:41 pm
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.