MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > Administration Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old December 15th, 2005, 11:29   #1
d1msumboi
 
Join Date: Dec 2005
Posts: 1
d1msumboi is on a distinguished road
Default No categories when adding content

Hi,
I just installed mambo on my website and I've been having problems adding content. Ive created a section and a category; however, when I go to click on submit news, there isn't any categories listed in the category drop down menu. any suggestions?

----

EDIT
Nevermind, i got it. Thanks.

Last edited by d1msumboi : December 15th, 2005 at 12:03.
d1msumboi is offline   Reply With Quote
Old December 17th, 2005, 23:19   #2
CuthbertWalden
 
Join Date: Apr 2005
Posts: 2
CuthbertWalden is on a distinguished road
Default

I have the same problem adding news in the frontend using "Submit news" No category shows up. Why?

4.5.3
CuthbertWalden is offline   Reply With Quote
Old December 18th, 2005, 22:45   #3
edayz
 
Join Date: Dec 2005
Posts: 7
edayz is on a distinguished road
Default

The same for me.
D1msumboi , could let me know how did you reslove this?

Thanks!
edayz is offline   Reply With Quote
Old December 18th, 2005, 23:16   #4
Asphyx
 
Join Date: Jan 2005
Posts: 2,291
Asphyx is on a distinguished road
Default

guy the submit news menu item will only submit content to the NEWS category....

the frontend submit content item is limited to a specific section and category that you define when you create the item...

so you would need to make a seperate menu item for each category you have created and select the proper one to submit content to the category you want....
Asphyx is offline   Reply With Quote
Old December 21st, 2005, 10:36   #5
llslim
 
Join Date: Dec 2005
Posts: 7
llslim is on a distinguished road
Default

I'm using 4.5.3 and there is no submit content item when making a new menu item, or am i just not seeing it in the list of menu items?
llslim is offline   Reply With Quote
Old December 21st, 2005, 11:25   #6
Asphyx
 
Join Date: Jan 2005
Posts: 2,291
Asphyx is on a distinguished road
Default

try selecting component and then see if submit content is there
Asphyx is offline   Reply With Quote
Old December 21st, 2005, 11:33   #7
llslim
 
Join Date: Dec 2005
Posts: 7
llslim is on a distinguished road
Default

Even though there is still no "submit content" option on the new menu item page. You can copy the URL from the Demo "Submit News" menu item and change the SectionId number to the desired section. The thinking of organizing your site and menus has to be thought out a little more before you try and implementing them into your site. That's all. As a tip you want very few sections, and many categories under those sections.
llslim is offline   Reply With Quote
Old December 21st, 2005, 11:51   #8
llslim
 
Join Date: Dec 2005
Posts: 7
llslim is on a distinguished road
Default

Quote:
Originally Posted by Asphyx
try selecting component and then see if submit content is there
No "Add menu item :: component" does not have a "Submit Content" option in its component list. It has ...

Contacts
Extensions
Front Page
Login
News Feeds
Polls
Search
Web Links

Did core dev mis something in 4.5.3?
llslim is offline   Reply With Quote
Old December 22nd, 2005, 03:24   #9
rs9049
 
Join Date: Dec 2005
Location: Texas
Posts: 1
rs9049 is on a distinguished road
Default I'm having the same problem...

Can't select a category under submit news on the front end... thinking it's a bug in the new release as well... all posts seem to be recent.

Trying to evaluate this software against Drupal and e107... but can't get past this issue. I want to be fair... it seems to be a well developed CMS... and the install was awesome.

Any help would be appreciated. Thanks in advance.

Ray

*** Update ***

There are at least 4 threads out there on this same subject... I appreciate Asphyx's posts regarding how it should work... and I have followed the instructions, but to no avail. I think the 4.5.3 release has an issue.

May need the core dev team to step in and do some damage control...

Thanks.

Last edited by rs9049 : December 22nd, 2005 at 03:59.
rs9049 is offline   Reply With Quote
Old December 22nd, 2005, 13:34   #10
llslim
 
Join Date: Dec 2005
Posts: 7
llslim is on a distinguished road
Lightbulb Get frontend submitting working in 10 steps with a example (mambo 4.5.3)

To enter content by the Mambo front end, you have to look and decipher some seetings a bit in order to get it to work. Until core dev, or one of us hack the source to add Asphyx's suggested and correct way of adding this link. Here is a little example of how to do this using Mambo 4.5.3 currently.

***Start of Example***

Lets say we are putting together an electronics site, and we are in the design/organization stage (most important stage before trying to fiddle with Mambo or any other CMS). We decided to organize our television reviews by television type. So we create a section of our site for television reviews, and give it a creative name like "Televisions". Since there is four major choices in television these days we create four sub-categories of the "Televisions" section. The categories are CRT, DLP, LCD, and Plasma. So now our Televisions section in tree (menu) form looks like this:

Televisions::section
  • CRT::Category
  • DLP::Category
  • LCD::Category
  • Plasma::Category

Implementation into Mambo 4.5.3:

I'm just going to gloss over steps that are intuitive to this process. My main goal is to show how to enable front end content submitting. If you have questions or unclear about a step feel free to reply and ask for clarification.
  1. Log into the Administrator (back end) of your site.
  2. Go to the "Section Manager". Create a new section named "Televisions".
  3. Return to the "Section Manager" screen, and record the "Section ID" number of the "Televisions" entry.
    (In my case it is section id number: "7")
  4. Goto the "Category Manager". Create the four Television Categories, and assign them to the "Televisions" section.
  5. Go to the "Menu Manager" and edit the "usermenu"
    (could be any menu, but I used "usermenu" for this example).
  6. Add a new menu item of the type "Link - Url", and following parameters:
    1. name: Submit Television Review
    2. link: index.php?option=com_content&task=new&sectionid=0&Itemid=0
      (Copied from the "Submit News" menu item in "usermenu").
    3. Account Level: Registered.
  7. In the link parameter above change the number after "sectionid=" to the number you recorded in step 3 above
    (That would be the number 7 for the "Televisions" section).
  8. Save the menu item.
  9. Log into the front end of your site.
  10. Click on "Submit Television Review"
***end of example***

Reminder: If you don't layout and organize your site before using any CMS. They are very hard to grasp. Especially Mambo's Section/Category setup or Drupal's Taxonomy. So think and design before you start implementing. It will save you a lot of time and headaches.

peace,
--Slim
llslim is offline   Reply With Quote
Old December 22nd, 2005, 14:09   #11
Asphyx
 
Join Date: Jan 2005
Posts: 2,291
Asphyx is on a distinguished road
Default

apparently Slim Joomla has added this to the menu item selections but 4.5.3 has not...
Thats why I have it and others don't...

My error...

Bottom line is both should either allow you to select which category and ALL categories so the regular drop down Section and Cat box is displayed in the editor...

It does in the backend but not from the front end...

I personally don't see the need to submit content from the front end....
when you can just as easily let them do it from the backend with all the same limitations of security level since the backend builds the menus it displays according to your security level...

you have to give someone auth privs anyway so give them author and let them submit from the backend....
Asphyx is offline   Reply With Quote
Old December 22nd, 2005, 17:38   #12
llslim
 
Join Date: Dec 2005
Posts: 7
llslim is on a distinguished road
Talking Ahh Ok..

I have been debating between Mambo and Joomla, because my client was/is thinkinng about dumping his current provider and switching to godaddy.com, and I want to provide front end submissions for users that gets easily confused with switching interfaces. I can see validity for both interfaces. *shrugs*

With that said... I think it's time to make that switch to Joomla for me for a number of reasons. Off I go.
llslim is offline   Reply With Quote
Old January 4th, 2006, 10:53   #13
mjelliott
 
Join Date: Oct 2005
Location: massachusetts
Posts: 30
mjelliott is on a distinguished road
Default Well, it wasn't so bad

Hi,

I just developed a family website with the purpose of family members able to contribute content via frontend. Only after I finished the site did I realize that when you tried to submit content the categories didn't show. I was very dissapointed and frustrated. However after reading your "fix" it worked! It was a lot easier than I thought.

Okay, Mambo isn't perfect but what is? Big thanks to the Mambo Dev Team ( both past and present)!!!!!!!!!!!

Mjelliott
mjelliott is offline   Reply With Quote
Old January 5th, 2006, 06:48   #14
llslim
 
Join Date: Dec 2005
Posts: 7
llslim is on a distinguished road
Default

Glad to be of service. Nothing is perfect hencewhy we all "hack" or put together quick solutions. to solve probblems at the time.
llslim is offline   Reply With Quote
Old February 14th, 2006, 15:31   #15
djmikey
 
Join Date: Jun 2005
Posts: 85
djmikey is on a distinguished road
Default

Hi, I think I have the same problem. I can't submit via front end because the category drop-down list is always empty, even when I'm just trying to edit an existing content item.
I've followed Slim's instructions. It did not work. The section id is correct but it still does not work.

On the back end it works but it's such an annoying bug. Any insight?

Last edited by djmikey : February 14th, 2006 at 15:41.
djmikey is offline   Reply With Quote
Old February 24th, 2006, 07:45   #16
lars_stecken
 
Join Date: Feb 2006
Location: Berlin, Germany
Posts: 10
lars_stecken is on a distinguished road
Default Hack for frontend editing Part 1

Hey guys,

whilst being new to Mambo and finding quite a few flaws in the system I am also happy with the simplicity of the code. So it didn't take a rocket scientists brain to do this hack. Hope it works for you like it did for me. I must stress that this hasn't been extensively tested, so if you detect any bugs let me know about it.

Greets, Stefan

Step 1: Modify /components/com_content/content.php
Locate and replace the function editItem():

PHP Code:
function editItem$uid$gid, &$access$sectionid=0$task$Itemid ){
    global 
$database$mainframe$my;
    global 
$mosConfig_absolute_path$mosConfig_live_site;

    
$row = new mosContent$database );
    
// load the row from the db table
    
$row->load$uid );

    if ( 
$uid ) {
        
// existing record
        
if ( !( $access->canEdit || ( $access->canEditOwn && $row->created_by == $my->id ) ) ) {
            
mosNotAuth();
            return;
        }
    } else {
        
// new record
        
if (!($access->canEdit || $access->canEditOwn)) {
            
mosNotAuth();
            return;
        }
    }

    if ( 
$uid ) {
        
$sectionid $row->sectionid;
    }
    
    if ( 
$sectionid == ) {
        
$where "\n WHERE section NOT LIKE '%com_%'";
    } else {
        
$where "\n WHERE section='$sectionid'";
    }
    
$lists = array();

/*************** BEGIN MODIFY ********************/
    // get the type name - which is a special category
    //$database->setQuery( "SELECT name FROM #__sections WHERE id=$sectionid" );
    //$section = $database->loadResult();
    // get the type name - which is a special category
     
if ($row->sectionid){
        
$query "SELECT name FROM #__sections WHERE id=$row->sectionid";
        
$database->setQuery$query );
        
$section $database->loadResult();
        
$contentSection $section;
    } else {
        
$query "SELECT name FROM #__sections WHERE id=$sectionid";
        
$database->setQuery$query );
        
$section $database->loadResult();
        
$contentSection $section;
    }
/*************** END MODIFY ********************/
    // fail if checked out not by 'me'
    
if ($row->checked_out && $row->checked_out <> $my->id) {
        echo
"<script>alert('The module ".$row->title." is currently being edited by another person.')</script>";
        
mosRedirect'index.php?option=com_content&amp;task=view&amp;id='$row->id );
    }

    if ( 
$uid == ) {
        
$row->catid 0;
    }

    if ( 
$uid ) {
        
$row->checkout$my->id );
        if (
trim$row->publish_down ) == "0000-00-00 00:00:00") {
            
$row->publish_down "Never";
        }
        if (
trim$row->images )) {
            
$row->images explode"\n"$row->images );
        } else {
            
$row->images = array();
        }
        
$database->setQuery"SELECT name from #__users"
        
"\n WHERE id = "$row->created_by
        
);
        
$row->creator $database->loadResult();

        
$database->setQuery"SELECT name from #__users"
        
"\n WHERE id = "$row->modified_by
        
);
        
$row->modifier $database->loadResult();

        
$database->setQuery"SELECT content_id from #__content_frontpage"
        
"\n WHERE content_id = "$row->id
        
);
        
$row->frontpage         $database->loadResult();
    } else {
        
$row->sectionid         $sectionid;
        
$row->version             0;
        
$row->state             0;
        
$row->ordering         0;
        
$row->images             = array();
        
$row->publish_up         date'Y-m-d'time() );
        
$row->publish_down         'Never';
        
$row->creator             0;
        
$row->modifier         0;
        
$row->frontpage         0;
        
$row->catid             NULL;
    }
/*************** BEGIN MODIFY ********************/
    
$javascript "onchange=\"changeDynaList( 'catid', sectioncategories, document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].value, 0, 0);\"";

    
$query "SELECT s.id AS value, s.title AS text"
    
"\n FROM #__sections AS s"
    
"\n ORDER BY s.ordering";
    
$database->setQuery$query );
    if ( 
$sectionid == ) {
        
$sections[] = mosHTML::makeOption'-1''Select Section' );
        
$sections array_merge$sections$database->loadObjectList() );
        
$lists['sectionid'] = mosHTML::selectList$sections'sectionid''class="inputbox" size="1" '$javascript'value''text' );
    } else {
        
$intval intval$row->sectionid);
      
$dbLoadObjectList $database->loadObjectList();
            
$lists['sectionid'] = mosHTML::selectList$dbLoadObjectList'sectionid''class="inputbox" size="1" '$javascript'value''text'$intval );
    }

    
$sections $database->loadObjectList();

    
$sectioncategories             = array();
    
$sectioncategories[-1]         = array();
    
$sectioncategories[-1][]     = mosHTML::makeOption'-1''Select Category' );
    foreach(
$sections as $section) {
        
$sectioncategories[$section->value] = array();
        
$query "SELECT id AS value, name AS text"
            
"\n FROM #__categories"
            
"\n WHERE section='$section->value'"
            
"\n ORDER BY ordering";
        
$database->setQuery$query );
        
$rows2 $database->loadObjectList();
        foreach(
$rows2 as $row2) {
            
$sectioncategories[$section->value][] = mosHTML::makeOption$row2->value$row2->text );
        }
    }

     
// get list of categories
      
if ( !$row->catid && !$row->sectionid ) {
         
$categories[]         = mosHTML::makeOption'-1''Select Category' );
         
$lists['catid']     = mosHTML::selectList$categories'catid''class="inputbox" size="1"''value''text' );
        
      } else {
         
$query "SELECT id AS value, name AS text"
         
"\n FROM #__categories"
         
$where
         
"\n ORDER BY ordering";
         
$database->setQuery$query );
         
$categories         =  $database->loadObjectList();
         
$lists['catid']     = mosHTML::selectList$categories'catid''class="inputbox" size="1"''value''text'intval$row->catid ) );
        
      }

/*************** END MODIFY ********************/
    // calls function to read image from directory
    
$pathA $mosConfig_absolute_path .'/images/stories';
    
$pathL $mosConfig_live_site .'/images/stories';
    
$images = array();
    
$folders = array();
    
$folders[] = mosHTML::makeOption'/' );
    
mosAdminMenus::ReadImages$pathA'/'$folders$images );
    
// list of folders in images/stories/
    
$lists['folders']             = mosAdminMenus::GetImageFolders$folders$pathL );
    
// list of images in specfic folder in images/stories/
    
$lists['imagefiles']        = mosAdminMenus::GetImages$images$pathL );
    
// list of saved images
    
$lists['imagelist']         = mosAdminMenus::GetSavedImages$row$pathL );

    
// make the select list for the states
    
$states[] = mosHTML::makeOption0_CMN_UNPUBLISHED );
    
$states[] = mosHTML::makeOption1_CMN_PUBLISHED );
    
$lists['state']             = mosHTML::selectList$states'state''class="inputbox" size="1"''value''text'intval$row->state ) );

    
// build the html select list for ordering
    
$query "SELECT ordering AS value, title AS text"
    
"\n FROM #__content"
    
"\n WHERE catid = '$row->catid'"
    
"\n ORDER BY ordering"
    
;
    
$lists['ordering']             = mosAdminMenus::SpecificOrdering$row$uid$query);

/*************** BEGIN MODIFY ********************/
    // build list of categories
    //$lists['catid']             = mosAdminMenus::ComponentCategory( 'catid', $sectionid, intval( $row->catid ) );
/*************** END MODIFY ********************/

    // build the select list for the image positions
    
$lists['_align']             = mosAdminMenus::Positions'_align' );
    
// build the html select list for the group access
    
$lists['access']             = mosAdminMenus::Access$row );
    
/*************** BEGIN MODIFY ********************/
    //HTML_content::editContent( $row, $contentSection, $lists, $images, $access, $my->id, $sectionid, $task, $Itemid );
    
HTML_content::editContent$row$contentSection$lists$images$access$my->id$sectionid$task$Itemid$sectioncategories );
/*************** END MODIFY ********************/


Last edited by lars_stecken : February 24th, 2006 at 08:35.
lars_stecken is offline   Reply With Quote
Old February 24th, 2006, 07:46   #17
lars_stecken
 
Join Date: Feb 2006
Location: Berlin, Germany
Posts: 10
lars_stecken is on a distinguished road
Default Hack for frontend editing Part 2

Step 2: Modify /components/com_content/content.html.php
Locate and replace the the function editContent()

PHP Code:
function editContent( &$row, $section, &$lists, &$images, &$access, $myid, $sectionid, $task, $Itemid, &$sectioncategories ) {
        global $mosConfig_live_site;
        mosMakeHtmlSafe( $row );
        $Returnid = intval( mosGetParam( $_REQUEST, 'Returnid', $Itemid ) );
        ?>
          <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
          <link rel="stylesheet" type="text/css" media="all" href="includes/js/calendar/calendar-mos.css" title="green" />
            <!-- import the calendar script -->
            <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/calendar/calendar.js"></script>
            <!-- import the language module -->
            <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/calendar/lang/calendar-en.js"></script>
          <script language="Javascript" src="<?php echo $mosConfig_live_site;?>/includes/js/overlib_mini.js"></script>
          <script language="javascript" type="text/javascript">
        onunload = WarnUser;
        var folderimages = new Array;
        var sectioncategories = new Array;
        <?php
        $i 
0;
        foreach (
$sectioncategories as $k=>$items) {
            foreach (
$items as $v) {
                echo 
"sectioncategories[".$i++."] = new Array( '$k','".addslashes$v->value )."','".addslashes$v->text )."' );\n\t\t";
            }
        }
        
?>
        <?php
        $i 
0;
        foreach (
$images as $k=>$items) {
            foreach (
$items as $v) {
                echo 
"\n    folderimages[".$i++."] = new Array( '$k','".addslashes$v->value )."','".addslashes$v->text )."' );";
            }
        }
        
?>
        function submitbutton(pressbutton) {
            var form = document.adminForm;
            if (pressbutton == 'cancel') {
                submitform( pressbutton );
                return;
            }

            // var goodexit=false;
            // assemble the images back into one field
            form.goodexit.value=1
            var temp = new Array;
            for (var i=0, n=form.imagelist.options.length; i < n; i++) {
                temp[i] = form.imagelist.options[i].value;
            }
            form.images.value = temp.join( '\n' );
            try {
                form.onsubmit();
            }
            catch(e){}
            // do field validation
            if (form.title.value == "") {
                alert ( "<?php echo _E_WARNTITLE?>" );
            } else if (parseInt('<?php echo $row->sectionid;?>')) {
                // for content items
                if (getSelectedValue('adminForm','catid') < 1) {
                    alert ( "<?php echo _E_WARNCAT?>" );
                //} else if (form.introtext.value == "") {
                //    alert ( "<?php echo _E_WARNTEXT?>" );
                } else {
                    <?php
                    getEditorContents
'editor1''introtext' );
                    
getEditorContents'editor2''fulltext' );
                    
?>
                    submitform(pressbutton);
                }
            //} else if (form.introtext.value == "") {
            //    alert ( "<?php echo _E_WARNTEXT?>" );
            } else {
                // for static content
                <?php
                getEditorContents
'editor1''introtext' ) ;
                
?>
                submitform(pressbutton);
            }
        }

        function setgood(){
            document.adminForm.goodexit.value=1;
        }

        function WarnUser(){
            if (document.adminForm.goodexit.value==0) {
                alert('<?php echo _E_WARNUSER;?>');
                window.location="<?php echo sefRelToAbs("index.php?option=com_content&task=".$task."&sectionid=".$sectionid."&id=".$row->id."&Itemid=".$Itemid); ?>"
            }
        }
        </script>

        <?php
        
//$docinfo = "<strong>"._E_SUBJECT."</strong> ";
        //$docinfo .= $row->title."<br />";
        
$docinfo "<strong>"._E_EXPIRES."</strong> ";
        
$docinfo .= $row->publish_down."<br />";
        
$docinfo .= "<strong>"._E_VERSION."</strong> ";
        
$docinfo .= $row->version."<br />";
        
$docinfo .= "<strong>"._E_CREATED."</strong> ";
        
$docinfo .= $row->created."<br />";
        
$docinfo .= "<strong>"._E_LAST_MOD."</strong> ";
        
$docinfo .= $row->modified."<br />";
        
$docinfo .= "<strong>"._E_HITS."</strong> ";
        
$docinfo .= $row->hits."<br />";
        
?>
        <div>
        
            <div class="contentheading" >
            <?php echo $section;?> / <?php echo $row->id _E_EDIT _E_ADD;?>&nbsp;
            <?php echo _E_CONTENT;?> &nbsp;&nbsp;&nbsp;
            <a href="javascript: void(0);" onMouseOver="return overlib('<table><?php echo $docinfo?></table>', CAPTION, '<?php echo _E_ITEM_INFO;?>', BELOW, RIGHT);" onMouseOut="return nd();">
            <strong>[Info]</strong>
            </a>
            </div>
            <div style="width: 10%;">
             <?php
             mosToolBar
::startTable();
             
mosToolBar::save();
             
mosToolBar::spacer(25);
             
mosToolBar::cancel();
             
mosToolBar::endtable();
             
$tabs = new mosTabs(0);
            
?>
            </div>
        
        </div>

        <form action="index.php" method="post" name="adminForm" onSubmit="javascript:setgood();">
        <input type="hidden" name="images" value="" />
        <div class="adminform">
        
            <div>
            <?php echo _E_TITLE?>
            </div>
        
            <div>
            <input class="inputbox" type="text" name="title" size="50" maxlength="100" value="<?php echo $row->title?>" />
            </div>
        
        <?php
        
if (isset($row->sectionid)) {
            
?>
                <div>
                <?php echo _E_SECTION?>
                </div>
            
                <div>
                <?php echo $lists['sectionid']; ?>
                </div>
                
                <div>
                <?php echo _E_CATEGORY?>
                </div>
            
                <div>
                <?php echo $lists['catid']; ?>
                </div>
            
            <?php
        
}
        
?>
<?php
            
if (intval$row->sectionid ) > 0) {
                
?>
                <div>
                <?php echo _E_INTRO.' ('._CMN_REQUIRED.')'?>:
                </div>
                <?php
            
} else {
                
?>
                <div>
                <?php echo _E_MAIN.' ('._CMN_REQUIRED.')'?>:
                </div>
            <?php
            
?>
        
            <div>
            <?php
            
// parameters : areaname, content, hidden field, width, height, rows, cols
            
editorArea'editor1',  $row->introtext 'introtext''500''200''45''5' ) ;
            
?>
            </div>
        
        <?php
        
if (intval$row->sectionid ) > 0) {
            
?>
            
                <div>
                <?php echo _E_MAIN.' ('._CMN_OPTIONAL.')'?>:
                </div>
            
                <div>
                <?php
                
// parameters : areaname, content, hidden field, width, height, rows, cols
                
editorArea'editor2',  $row->fulltext 'fulltext''500''400''45''10' ) ;
                
?>
                </div>
            
            <?php
        
}
        
?>
        </div>
         <?php
        $tabs
->startPane'content-pane' );
        
$tabs->startTab_E_IMAGES'images-page' );
        
?>
        <table class="adminform">
        <tr>
            <td colspan="6">
            <?php echo _CMN_SUBFOLDER?> :: <?php echo $lists['folders'];?>
            </td>
        </tr>
        <tr>
            <td align="top">
            <?php echo _E_GALLERY_IMAGES?>
            </td>
            <td align="top">
            <?php echo _E_CONTENT_IMAGES?>
            </td>
            <td align="top">
            <?php echo _E_EDIT_IMAGE?>
            </td>
        <tr>
            <td valign="top">
            <?php echo $lists['imagefiles'];?>
            <br />
            <input class="button" type="button" value="<?php echo _E_INSERT?>" onclick="addSelectedToList('adminForm','imagefiles','imagelist')" />
            </td>
            <td valign="top">
            <?php echo $lists['imagelist'];?>
            <br />
            <input class="button" type="button" value="<?php echo _E_UP?>" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,-1)" />
            <input class="button" type="button" value="<?php echo _E_DOWN?>" onclick="moveInList('adminForm','imagelist',adminForm.imagelist.selectedIndex,+1)" />
            <input class="button" type="button" value="<?php echo _E_REMOVE?>" onclick="delSelectedFromList('adminForm','imagelist')" />
            </td>
            <td valign="top">
                <table>
                <tr>
                    <td align="right">
                    <?php echo _E_SOURCE?>
                    </td>
                    <td>
                    <input class="inputbox" type="text" name= "_source" value="" size="15" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top">
                    <?php echo _E_ALIGN?>
                    </td>
                    <td>
                    <?php echo $lists['_align']; ?>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <?php echo _E_ALT?>
                    </td>
                    <td>
                    <input class="inputbox" type="text" name="_alt" value="" size="15" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <?php echo _E_BORDER?>
                    </td>
                    <td>
                    <input class="inputbox" type="text" name="_border" value="" size="3" maxlength="1" />
                    </td>
                </tr>
                <tr>
                    <td align="right"></td>
                    <td>
                    <input class="button" type="button" value="<?php echo _E_APPLY?>" onclick="applyImageProps()" />
                    </td>
                </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
            <img name="view_imagefiles" src="<?php echo $mosConfig_live_site;?>/images/M_images/blank.png" width="50" alt="No Image" />
            </td>
            <td>
            <img name="view_imagelist" src="<?php echo $mosConfig_live_site;?>/images/M_images/blank.png" width="50" alt="No Image" />
            </td>
        </tr>
        </table>
        <?php
        $tabs
->endTab();
        
$tabs->startTab_E_PUBLISHING'publish-page' );
        
?>
        <table class="adminform">
        <?php
        
if ($access->canPublish) {
            
?>
            <tr>
                <td align="left">
                <?php echo _E_STATE?>
                </td>
                <td>
                <?php echo $lists['state']; ?>
                </td>
            </tr>
            <?php
        
?>
        <tr>
            <td align="left">
            <?php echo _E_ACCESS_LEVEL?>
            </td>
            <td>
            <?php echo $lists['access']; ?>
            </td>
        </tr>
        <tr>
            <td align="left">
            <?php echo _E_AUTHOR_ALIAS?>
            </td>
            <td>
            <input type="text" name="created_by_alias" size="50" maxlength="100" value="<?php echo $row->created_by_alias?>" class="inputbox" />
            </td>
        </tr>
        <tr>
            <td align="left">
            <?php echo _E_ORDERING?>
            </td>
            <td>
            <?php echo $lists['ordering']; ?>
            </td>
        </tr>
        <tr>
            <td align="left">
            <?php echo _E_START_PUB?>
            </td>
            <td>
            <input class="inputbox" type="text" name="publish_up" id="publish_up" size="25" maxlength="19" value="<?php echo $row->publish_up?>" />
            <input type="reset" class="button" value="..." onclick="return showCalendar('publish_up', 'y-mm-dd');" />
            </td>
        </tr>
        <tr>
            <td align="left">
            <?php echo _E_FINISH_PUB?>
            </td>
            <td>
            <input class="inputbox" type="text" name="publish_down" id="publish_down" size="25" maxlength="19" value="<?php echo $row->publish_down?>" />
            <input type="reset" class="button" value="..." onclick="return showCalendar('publish_down', 'y-mm-dd');" />
            </td>
        </tr>
        <tr>
            <td align="left">
            <?php echo _E_SHOW_FP?>
            </td>
            <td>
            <input type="checkbox" name="frontpage" value="1" <?php echo $row->frontpage 'checked="checked"' ''?> />
            </td>
        </tr>
        </table>
        <?php
        $tabs
->endTab();
        
$tabs->startTab_E_METADATA'meta-page' );
        
?>
        <table class="adminform">
        <tr>
            <td align="left" valign="top">
            <?php echo _E_M_DESC?>
            </td>
            <td>
            <textarea class="inputbox" cols="45" rows="3" name="metadesc"><?php echo str_replace('&','&amp;',$row->metadesc); ?></textarea>
            </td>
        </tr>
        <tr>
            <td align="left" valign="top">
            <?php echo _E_M_KEY?>
            </td>
            <td>
            <textarea class="inputbox" cols="45" rows="3" name="metakey"><?php echo str_replace('&','&amp;',$row->metakey); ?></textarea>
            </td>
        </tr>
        </table>
        <input type="hidden" name="goodexit" value="0" />
        <input type="hidden" name="option" value="com_content" />
        <input type="hidden" name="Returnid" value="<?php echo $Returnid?>" />
        <input type="hidden" name="id" value="<?php echo $row->id?>" />
        <input type="hidden" name="version" value="<?php echo $row->version?>" />
        <!--<input type="hidden" name="sectionid" value="<?php echo $row->sectionid?>" />-->
        <input type="hidden" name="created_by" value="<?php echo $row->created_by?>" />
        <input type="hidden" name="task" value="" />
        </form>
        <?php
        $tabs
->endTab();
        
$tabs->endPane();
        
?>
        <div style="clear:both;"></div>
        <?php
    
}
Step 3: Add to your language file in /languages/YOURLANG.php

e.g.
PHP Code:
DEFINE('_E_SECTION','Sektion:'); 

Last edited by lars_stecken : February 24th, 2006 at 08:35.
lars_stecken is offline   Reply With Quote
Old March 2nd, 2006, 05:30   #18
renato61
 
Join Date: Feb 2006
Posts: 5
renato61 is on a distinguished road
Default

Ohh! Very good! I resolve my problem reading this example. Thank you very much.
Bye
renato61 is offline   Reply With Quote
Old March 2nd, 2006, 08:30   #19
synapticblur
 
Join Date: Mar 2006
Posts: 1
synapticblur is on a distinguished road
Default

Lars,

Great hack, thanks a ton. Looks like it really fixes this problem nicely. Thanks dude
synapticblur is offline   Reply With Quote
Old April 7th, 2006, 10:14   #20
saylum1976
 
Join Date: Apr 2006
Posts: 1
saylum1976 is on a distinguished road
Default Why no people do this...

Quote:
Originally Posted by d1msumboi
Hi,
I just installed mambo on my website and I've been having problems adding content. Ive created a section and a category; however, when I go to click on submit news, there isn't any categories listed in the category drop down menu. any suggestions?

----

EDIT
Nevermind, i got it. Thanks.
In the future can you post how you fixed so the rest of us can share in the good fortune.

Thanks
saylum1976 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating content for sections and categories? DRD General Questions 2 April 24th, 2005 04:52
Hide/Show other Categories in "List - Content Section" CubaLibre Wishlist & Feature Requests 0 December 11th, 2004 15:08
Content Section module displays article content, not section categories divamissx Installation Questions 0 November 5th, 2004 04:19
Blog pages, Read more and Content items pages YTW Wishlist & Feature Requests 0 October 27th, 2004 04:22
Adding Link Content Item hogs QReyes 4.5.1 2 September 19th, 2004 00:42


All times are GMT -7. The time now is 07:40.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.