| Previous · Next | |
| User | Message |
|
colink
|
Date: 5/1/2008 3:15 pm · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
I would suggest looking at the Shortcut Asset. It already allows for overriding, and may have a random picker as well. |
| Back to Top |
Rate [ | ]
|
|
bernd
|
Date: 5/2/2008 1:05 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
Right. In fact, I am using the shortcut asset as well. The idea is topick a Collaboration system (CS) randomly from all over the site and then have a random thread displayed. The first is achieved by an alternating shortcut. For the second, I need the RandomAssetProxy that is used within the override template of randomly picked CSs. Since I do not want to use the default template of threads, however, I need to extend the RandomAssetProxy. Am Donnerstag, den 01.05.2008, 15:15 -0500 schrieb ckuskie@sterlink.net: > colink wrote: > > I would suggest looking at the Shortcut Asset. It already allows for > overriding, and may have a random picker as well. > > > http://www.plainblack.com/webgui/dev/discuss/re-extending-the-randomassetproxy-by-a-templateid-argument > |
| Back to Top |
Rate [ | ]
|
|
martink
|
Date: 5/2/2008 3:50 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
Then why not use the RandomThread macro, which comes with the default WebGUI distribution? See http://www.webgui.org/community-wiki/random-thread-macro Martin spunky@kashyyyk.de wrote: > bernd wrote: > > Right. In fact, I am using the shortcut asset as well. The idea is to > pick a Collaboration system (CS) randomly from all over the site and > then have a random thread displayed. The first is achieved by an > alternating shortcut. For the second, I need the RandomAssetProxy that > is used within the override template of randomly picked CSs. Since I do > not want to use the default template of threads, however, I need to > extend the RandomAssetProxy. > > Am Donnerstag, den 01.05.2008, 15:15 -0500 schrieb ckuskie@sterlink.net: > > colink wrote: > > > > I would suggest looking at the Shortcut Asset. It already allows for > > overriding, and may have a random picker as well. > > > > > > > http://www.plainblack.com/webgui/dev/discuss/re-extending-the-randomassetproxy-by-a-templateid-argument > > > > > > > http://www.plainblack.com/webgui/dev/discuss/re-extending-the-randomassetproxy-by-a-templateid-argument/1 > > ------------------------------------------------------------------------ > > > > |
| Back to Top |
Rate [ | ]
|
|
bernd
|
Date: 5/3/2008 0:15 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
Well, as I said: it needs to be a extended for accepting a template ID as the second argument... |
| Back to Top |
Rate [ | ]
|
|
martink
|
Date: 5/3/2008 7:00 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 1
spunky@kashyyyk.de wrote:> bernd wrote: > > /Then why not use the RandomThread macro, which comes with the > default > WebGUI distribution? See > http://www.webgui.org/community-wiki/random-thread-macro > / > > /Martin/ > > Well, as I said: it needs to be a extended for accepting a template ID > as the second argument... > Did you read the stuff in the url I sent you? I sais right there: /templateURL/ URL of the template to use to display the random thread Martin > > > > http://www.plainblack.com/webgui/dev/discuss/re-extending-the-randomassetproxy-by-a-templateid-argument/5 > > ------------------------------------------------------------------------ > > > > |
| Back to Top |
Rate [ | ]
|
|
bernd
|
Date: 5/3/2008 9:31 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
|
| Back to Top |
Rate [ | ]
|
|
bartjol
|
Date: 5/2/2008 3:23 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
Skip my remark, the RandomThread macro seems the way to go Just trying to help: |
| Back to Top |
Rate [ | ]
|
|
bernd
|
Date: 5/3/2008 0:14 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
I have never used SQL-Reports before. How would that work? I assume you suggest to query the table containing threads directly and then pick an entry randomly? Is that really "clean" coding? What if the structure of tables change in future releases? -- |
| Back to Top |
Rate [ | ]
|
|
martink
|
Date: 5/3/2008 7:05 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 1
spunky@kashyyyk.de wrote:> bernd wrote: > > I have never used SQL-Reports before. How would that work? I assume > you suggest to query the table containing threads directly and then > pick an entry randomly? Is that really "clean" coding? What if the > structure of tables change in future releases? > That is correct. Whether you can cosider it 'clean' coding depends on if you view no using the API as clean. If the db schema changes your SQLReport will indeed break, and you'll have to fix it manually. However in many cases this is not that big a problem. Obviously creating a Macro or Asset that uses the API to fetch the data you want is the most bestedest solution, but it requires you to add plugins to your site, which is something a lot of people cannot do because they don't host themselves. In that case a SQLReport is your only choice. Martin > > -- > Trying to build a non-profit community portal for free-climbers around > Magdeburg/Germany. Check out http://kletterfreunde-md.kashyyyk.de > (under construction). > > > > http://www.plainblack.com/webgui/dev/discuss/re-extending-the-randomassetproxy-by-a-templateid-argument/4 > > ------------------------------------------------------------------------ > > > > |
| Back to Top |
Rate [ | ]
|
|
bartjol
|
Date: 5/3/2008 4:44 am · Subject: Re: Extending the RandomAssetProxy by a templateID argument · Rating: 0
but the random-thread macro takes a templateurl as 3rd parameter, ok it's not an id, but good enough it seem |
| Back to Top |
Rate [ | ]
|