Results 1 to 2 of 2

Thread: change div id in DetailView

  1. #1
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Arrow change div id in DetailView

    Hi,

    In Studio in EditView I have some new panel renamed from default "PANEL 1" to "BLABLA". Now when editing that module when view the source there is:

    Code:
    <div id="BLABLA">
    <table width="100%" border="0" cellspacing="1" cellpadding="0"  class="tabForm">
    <th class="dataLabel" align="left" colspan="8">
    <h4>BLABLA</h4>
    Great.. But when I do that in studio in DetailView then go to detail view in the module in the source I have:

    Code:
    <div id='panel_1'>
    <h4 class="dataLabel">BLABLA</h4><br>
    <table width='100%' border='0' cellspacing='0' cellpadding='0'  class='tabDetailView'>
    Bad.. How to change that default value "panel_1" to what I want? "BLABLA" in my example. I have a javascript in view.edit.php and also want to use that script in view.detail.php (for the entire panel "BLABLA")

    SugarCE 5.0

    Thanks

  2. #2
    zaska's Avatar
    zaska is offline Senior Member
    Join Date
    Sep 2008
    Posts
    99

    Thumbs up Re: change div id in DetailView

    Ha.. found the answer realy quick when post that I guess yesterday I was out of space )


    Fixing a Minor Bug in the Detail View Container
    In Edit Views, there is a div tag wrapped around panels. The div id is the name of the panel. In
    the detail view, the naming of the div tags is different. All the divs are named panel_1. This is a
    known bug in the application . To fix the problem, change the file
    include/DetailView/DetailView.tpl.
    Around line 36 change the following line:
    <div id='panel_{{$panel_id}}'>
    to
    <div id='{{$label}}'>
    This change is not upgrade safe. You are changing core code. This change will need to be
    reapplied when upgrading!!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to change View Change Log link in Cases Module
    By rraushan2007 in forum Developer Help
    Replies: 1
    Last Post: 2008-08-27, 12:06 PM
  2. Help using YUI within DetailView!
    By fedepia in forum Help
    Replies: 0
    Last Post: 2008-07-24, 04:25 PM
  3. DetailView bug
    By fedepia in forum Help
    Replies: 0
    Last Post: 2008-05-30, 04:11 PM
  4. 5.0 Detailview changes
    By kheald in forum Developer Help
    Replies: 2
    Last Post: 2008-02-27, 05:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •