Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  Attributes Walk-Through
Previous Previous
 
Next Next
New Post 3/16/2007 10:15 PM
User is offline cthames
12 posts
10th Ranked


Re: Attributes Walk-Through 

In the mean time I'm just using Checkboxes even though I want radio, since the template errors on a cast from checkbox list to radio list. In doing so I found out that the dang code automatically generates a span tag around the information!! What is the purpose of that!?!? I just want the text! Isn't that what a template is for??? Put your own span/div tags around your dynamic text?? There is a lot more control over the look and feel that way and not what someone hardcoded into the ascx.vb/cs page.

 
New Post 3/17/2007 7:50 AM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: Attributes Walk-Through 
Modified By Steve Fabian  on 3/17/2007 9:53:11 AM)

Thanks for yelling. especially without first confirming that I'm doing something wrong.

I am not automatically generating <span> tags, nowhere in the Repository code do I generate <span> tags. In fact, I just re-searched my source code for 'span' and got no hits at all.

The controls are dynamic and generated from templates. When the input form is generated on the fly, I read and parse the templates and create dynamic input controls, then inject those controls in to a PlaceHolder control.

Here's the code that is being used to generate the checkboxes..

objCBL = New CheckBoxList
objCBL.CssClass = "normal"
objCBL.RepeatColumns = 5
objCBL.RepeatDirection = RepeatDirection.Horizontal
objCBL.RepeatLayout = RepeatLayout.Table
objCBL.Enablev13wstat3 = True
objCBL.ID = "__Attribute_" & attribute.ItemID.ToString()
For Each attributeValue In attributeValues.GetRepositoryAttributeValues(attribute.ItemID)
   objItem = New ListItem(attributeValue.ValueName, attributeValue.ItemID)
   repositoryObjectValue = Nothing
   repositoryObjectValue = repositoryObjectValues.GetSingleRepositoryObjectValues _  (objRepository.ItemId, attributeValue.ItemID)
   If Not IsNothing(repositoryObjectValue) Then
      objItem.Selected = True
   Else
      objItem.Selected = False
   End If
   objCBL.Items.Add(objItem)
Next
PlaceHolder.Controls.Add(objCBL)


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 5/11/2007 11:04 PM
User is offline Adeptris
33 posts
www.adeptris.com
10th Ranked


Re: Attributes Walk-Through 

Hi

I have followed the advice here, I am a newbie, I want to have the attributes as a select Dropdown on the template html form.

The reason is I want to show images, and allow a choice of medium and size/price, Medium = gloss or matte, Size = A4, A2, A1 etc, then a button to add to a paypal cart, based on the selections, with the price always being the last 5 characters of the size attribute.

But first I need to get the Attributes into Dropdown Select Text boxes.

Any advice idiot style steps, would be great, anyone who could do this for a reasonable fee please contact me, and I will send the details! david.cox@adeptris.co.uk

The Template and skin I an designing can be found here!

http://www.adeptris.co.uk/Gallery/tabid/59/Default.aspx 

 

David

 
New Post 8/8/2007 6:08 AM
User is offline Bruno
20 posts
webiseasy.org
10th Ranked


Re: Attributes Walk-Through 

I get the following issues with attributes.

I Have created a Company attribute in my repository, in the form it works well, and I was able to set the setting to "SINGLE".

In the header and the template I could display the combo box and the value but I could not change the properties.

In the header.xml I have the following :

<Object>
    <Token>[ATTRIBUTE:Company]</Token>
    <Settings>
      <Setting>
        <Name>CssClass</Name>
        <Value>breadcrumb</Value>
      </Setting>
      <Setting>
        <Name>Width</Name>
        <Value>300</Value>
      </Setting>
    </Settings>
  </Object>

but the attribute combo stay at default size and format.

In the template.xml I have :

<Object>
    <Token>[ATTRIBUTE:Company]</Token>
    <Settings>
      <Setting>
        <Name>CssClass</Name>
        <Value>Head</Value>
      </Setting>
    </Settings>
  </Object>

but the style stay to normal.

Is it a bug ? , I have tried with multiple combinations of upper and lower case for [attribute] but nothing works.

Any idea welcome.

I have also noticed some issues in documentation, for example the XML Setting "Required" is not documented although it is usefull for skinning.

 


Bruno Généré
 
New Post 2/29/2008 10:13 AM
User is offline Vishal Rajput
127 posts
9th Ranked


Re: Attributes Walk-Through 

Hi,

I am using the repository module for a directory listing, which is spereated by Regoins. So North & Central America is one region. Is it possible to display the countries in that region as Attributes Or Better yet, is it possible to use the Countries in the Header showing as Categories and I would Add the Products as Attributes ?

Thanks,

Vishal

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  Attributes Walk-Through
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com
Alki Homes - Seattle, WA
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP