BV Commerce Forum
»
BV Commerce Support
»
Development
»
Adding the left content column to custom pages.
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
For those who have been asking: Open "Custom.aspx" in notepad or another friendly editor. View the attached image and add the code in the red boxes. Change the "ColumnName" to the name of the column you want to add to the page. You can get the column name from the admin area: Content > Columns > Column Name. Nick Alberti attached the following image(s): Custom.jpg (85kb) downloaded 432 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Rank: Member
Joined: 9/24/2003(UTC) Posts: 402
|
Awesome was just wondering about this today.
|
|
|
|
Rank: Member
Joined: 1/23/2006(UTC) Posts: 103
|
You can also do the same thing by making a custom.master for your theme and adding the left column that you want.
|
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
I totally agree. Adding it to the custom page would be the best way to do it. I believe I added these instructions for someone who didn't have "custom.master" their theme. |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
This isn't working in SP2 final / Painted Paper. Any changes in SP2 that might cause this mod to throw a runtime error? MitchA attached the following image(s): special-page-mod-error.jpg (46kb) downloaded 173 time(s).You cannot view/download attachments. Try to login or register. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 3/8/2007(UTC) Posts: 139
|
Hey Mitch, Make sure the ColumnName matches the column in which you are attempting to call. Also, make sure the TagPrefix does not exist in any other pages that are called. You may want to change the prefix to "ucc1" and update the control tag. This will likely fix your issue. Thanks, Everett |
Everett Comstock
BV Software |
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
That did it - thanks. No need to change the "uc1". |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 11/15/2007(UTC) Posts: 52
|
Originally Posted by: "MitchA" That did it - thanks. No need to change the "uc1".
Mitch, Thank you for your reply. This works, it is exactly what i needed. However there are formatting issues now, I have attached a file that shows what the side column menu looks like with code changes given. Is there a way to format this control in the stylesheet? Or is there something more I need to do to the code to bring the size of the box all the way to the left and align text to the left as well? Thank you for your help again, Dan File Attachment(s): menuinc.png (380kb) downloaded 186 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
Rank: Member
Joined: 6/26/2008(UTC) Posts: 38
|
So you don't have to type it out:Code:<%@ Page Language="VB" MasterPageFile="~/BVModules/Themes/YOURTHEME/Default.master" AutoEventWireup="false" CodeFile="Custom.aspx.vb" Inherits="Custom" title="Custom Page" %>
<%@ Register Src="~/BVModules/Controls/ContentColumnControl.ascx" TagName="ContentColumnControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentHolder" Runat="Server">
<div id="categoryleft"> <uc1:ContentColumnControl ID="ContentColumnControl1" runat="server" ColumnName="System Category Page" /> </div>
<h1><span><asp:Label ID="lblName" Text="Title Loads Here" runat="server" /></span> </h1><asp:Label ID="lblContent" Text="Content Loads Here" runat="server" />
</asp:Content>
Note that if you put this into CART.ASPX there will be formatting issues. When I find what fixes it I'll post here. |
David Rodriguez Infinet Development, Inc. |
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Originally Posted by: "D-ROD" Note that if you put this into CART.ASPX there will be formatting issues. When I find what fixes it I'll post here. This is probably because of the fixed width of your shopping cart table. Any page will need to be modified so that the content will fit in the smaller width space you're creating for it. |
|
|
|
|
Rank: Member
Joined: 6/26/2008(UTC) Posts: 38
|
Quite right.
The DIVs weren't playing nicely with the table generated by the GRIDVIEW control. That table assumed 100% of... the page, rather than it's actual available space (given the left hand DIV that held the menu & floated left so everything to its right could wrap under it).
Wrapping everything to the right in another DIV nailed it - I would have fought if I actually wanted wrapping underneath the left DIV (adjusting the table would have accomplished that). |
David Rodriguez Infinet Development, Inc. |
|
|
|
Rank: Member
Joined: 9/26/2008(UTC) Posts: 23
|
I have copied one of the existing BVC 5 themes and I am trying to modify it to come up with one of my own. I would like to add a custom column in a left column of my template to hold the categories navigation list. How can I go about doing this? Thanks!
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.