Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHow to extend Suggest a LinkHow to extend Suggest a Link
Previous
 
Next
New Post
10/16/2007 2:25 PM
 

I would like to try to accomplish the following:

On our school's library website, I have several repositories within an aggregator.  You can see it here. I would like to implement a suggest a link feature similar to this that would be placed in it's own module down the right side of the page so that the user sees the aggregated repository in the content section and can quickly go over to the right pane and use the suggest a link module to add a link that would then be cued for approval by the moderator.

I know in this thread Steve created a starting template that is now part of the templates that comes with the default install.  I want to extend this concept a little so that whoever is suggesting a link can not only suggest the category the link should go in but also the respective repository.  There are many folks who are part of a librarian's user group who would like to add links to our repository and I want to make it as easy for them as possible.

What would be the best way to tackle this?  Any suggestion appreciated.

Paul

 

 
New Post
10/18/2007 5:01 PM
 

Still looking for a little friendly advice.

Thanks,

Paul

 
New Post
10/18/2007 5:42 PM
 

Hey Paul,
Not ignoring you .. just trying to think of a way to accomplish what you're asking for ...

I can't think of any way to do it without code changes. However, if you're up to code changes, here's my thoughts.

1. take a look at the Dashboard code. It has logic to query the modules table and find all of the repository modules that are installed. It uses that to populate the dropdown list of repositories so you can associate a dashboard with a specific instance of a repository module somewhere on your site.

2. you'd have to add a new tag to the form processor to inject a combo box on the upload form and populate it with a list of repositories, similar to what the dashboard is doing. that would allow your users to select a specific repository to upload the item to

3. when submitting the item, you'd have to replace the current "ModuleID" with the module id of the selected repository from the dropdown. Again, look at the repository dashboard code, that's pretty much what it does, stores the module id of the selected repository module in the drop down list

Those changes should do it. When a user uploads an item, they could select a repository, and when the back end function is called to add the item, the module id of the selected repository will be passed as the module id and the stored item will be associated with that specific instance.

:) 

 
New Post
10/18/2007 9:13 PM
 

That's a great explanation Steve and I supspected the dashboard code was the place to start poking around.  The only hiccup I see myself running into is not being able to limit the repositories that are populated with this method.  I only want the end user to see the repositories specific to the ones in the aggregator, not the entire site as this could be too confusing for them.  Not sure how I'm going to get around that one though.

Thanks for your time and talent.

Paul

 
New Post
10/19/2007 12:01 PM
 

when you add the code to the form processor to create and inject the dropdown list, you can certainly filter which repositories are added to the list at that time. You could either do it by artifically enforcing some kind of naming convention of the repository modules and look at the module title only adding ones that match some criteria.

or, you could use the form.xml method and inspect a setting and use that to populate your dropdown.

for example:

 <Object>
  <Token>[REPOSITORYPICKER]</Token>
  <Settings>
   <Setting>
    <Name>ModuleIds</Name>
    <Value>135,176,118,234</Value>
   </Setting>
  </Settings>
 </Object>

Then in form.ascx.vb when you're processing a REPOSITORYPICKER tag, create your dropdown list control, call the Controller function to get a list of all the Repository modules on your site, then one by one, check to see if the module id is in the ModuleIds setting from the xml file. If it is, then add it to the dropdown.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHow to extend Suggest a LinkHow to extend Suggest a Link


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out