[racktables-users] Re: Help needed in developing RackTables Software Manager

  • From: Ernest Shaffer <ernest.shaffer@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Sat, 4 Dec 2010 10:08:10 -0800

Thank you for the feedback.  

Actually, for now I'm doing what I can to keep it all in one plugin type file 
that just needs to be included.  I am however keeping the code in my file 
grouped together based on where it would go later if it were merged.

Ernie

On Dec 4, 2010, at 1:35 AM, Alexey Andriyanov wrote:

> 1. Make sure you have the line
> $page['title']['bypass'] = 'title_id';
> in your inc/navigation.php
> 
> 2. Add code for a new 'title' page into your dynamic_title_decoder() 
> implementation in inc/interface.php.
> 
> BTW, I am not sure this patch will be merged into trunk.
> 
> 03.12.2010 10:52, Ernest Shaffer пишет:
>> Does anyone have any good notes on how RackTables functions and realms work 
>> so I can create a new  Main menu and realm in RackTables similar to Objects 
>> or Files?
>> 
>> I'm trying to make a software manager in RackTables that will allow tracking 
>> installed software and license information.  Rather then creating a 
>> stand-alone plugin, I figured it might be better to make it fully integrated 
>> with RackTables.  I wanted to make it similar to the Objects section 
>> creating a new Table called Software with basic information about the 
>> Software Titles (like RackObject), and with a new realm called software.  I 
>> want to allow linking files to each software title similar to objects.  I 
>> also wanted to allow liking the Software Titles to objects just like linking 
>> files to objects.  I was able to get as far as setting up the Software ->  
>> Titles ->  View tab which pulls from the new Software table using $SQLSchema 
>> and built in functions (modified), but now I can't figure out how to get the 
>> View tab link to get generated correctly for my software title (summary 
>> page).
>> 
>> So I figured I'd ask the developers if they have any notes or suggestions on 
>> getting a new Main section added with new realm.
>> 
>> Also, should it be possible to get attributes added to my Software titles 
>> just like objects, utilizing the built in functions so you can use the 
>> Configuration Attributes Edit map to link attributes to software titles?  Or 
>> should I just look at creating my own attributes functions/tables to add 
>> custom attributes to these software titles?  I was hoping that the $realm 
>> variable would have be used some how to allow duplicate id values that exist 
>> between the RackObject table and my new Software table, but it doesn't look 
>> like it does this, or I'm just not understanding this part yet and my code 
>> is just broken.  (see pictures)
>> 
>> Here is where I'm stuck now.
>> 
>> Main page: Software: dynamic_title_decoder() failure
>> 
>> should be:
>> Main page: Software: Windows Server 2008 R2
>> 
>> My Software TItle View tab link looks like this:
>> http://localhost/racktables/index.php?page=title&tab=default
>> 
>> But it should be:
>> http://localhost/racktables/index.php?page=title&tab=default&object_id=1
>> 
>> So using the Object View tab as an example, I can't figure out where in the 
>> code for the&object_id=1 or in my case the&title_id=1 gets appended?
>> 
>> Attached are some screen shots of my progress.  You'll notice that the 
>> attributes for the software title are actually pulling from the attributes 
>> of the object with the same id as the software title in my new software 
>> table.
>> 
>> Thanks for any help you can provide.
>> 
>> Ernie
>> 
> 
> 


Other related posts: