[gen] appyclass.getIcons now receives the nav param, in case one wants to reproduce, on an icon or a picture, the link to the element. For example, on a artist's site that presents its artworks, getIcons can be used to create a clickable link to a small version of the artwork, that leads to the full-size picture. Bugfix in result.pt (numbering of elements in the grid view).
This commit is contained in:
parent
c5ec54f0e5
commit
da4f502ddc
2 changed files with 19 additions and 14 deletions
|
@ -915,10 +915,10 @@ class BaseMixin:
|
|||
return None
|
||||
return res
|
||||
|
||||
def getIcons(self):
|
||||
def getIcons(self, navInfo=''):
|
||||
'''Gets the icons that can be shown besides the title of an object.'''
|
||||
appyObj = self.appy()
|
||||
if hasattr(appyObj, 'getIcons'): return appyObj.getIcons()
|
||||
if hasattr(appyObj, 'getIcons'): return appyObj.getIcons(navInfo)
|
||||
return ''
|
||||
|
||||
def getSubTitle(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue