Changing buttons

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Changing buttons

Post by eagle » 2014-05-06 13:40

The new Bootstrap theme:

1) Where do I change the icon used for downloading uploaded files? (Now it is globe - I would like to change it to a PDF icon).

2) Can I easily remove the Save CSV and filter buttons?

3) Can we translate the text of the buttons in these themes?

Thanks for all help!

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: Changing buttons

Post by peebee » 2014-05-07 01:59

1) Where do I change the icon used for downloading uploaded files? (Now it is globe - I would like to change it to a PDF icon).
To edit using the pre-loaded Bootstrap Glphicons, edit the appropriate tablename_templateDV.html in the template folder. Find the Upload field you are looking for and you will see <i class="glyphicon glyphicon-globe" title="<%%VALUE(fieldname)%%>"></i>. Replace the "glyphicon-globe" with the desired available glyphicon from what's available here: http://getbootstrap.com/components or here: http://glyphicons.bootstrapcheatsheets.com

I don't think there is an actual PDF glyphicon available? If you want to use a pdf icon, you will have to load your own image and apply a class/CSS of your own.
2) Can I easily remove the Save CSV and filter buttons?
In Appgini, click on the table name in the left column and you'll see options under "Table View Settings" to enable/disable. You can also use a hook by adding the appropriate datalist object. You can read the options here: http://bigprof.com/appgini/help/advance ... ist-object
3) Can we translate the text of the buttons in these themes?
Open the generated language.php and you'll see all of the language strings available for translation. Edit/Save/Replace

Hope that helps.

eagle
Veteran Member
Posts: 39
Joined: 2013-01-09 15:38

Re: Changing buttons

Post by eagle » 2014-05-07 05:54

Thanks a lot, peebee!

All three answers understood, tested and works exactly as I wanted :D

Thanks again!

Post Reply