Home
About
Testimonials
Demos
Download
Documentation
Forum
Development
Forum
Help
Search
Chatroom
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Feb. 08, 2012, 06:00:25 AM
55065
Posts in
12346
Topics by
65558
Members
Latest Member:
gentle_dental
News
:
The PRADO Community
»
Prado v2.x
»
Component Repository
»
TCssDropDownMenuv0.4.2
« previous
next »
Pages:
1
2
3
[
4
]
Author
Topic: TCssDropDownMenuv0.4.2 (Read 42460 times)
alexkorban
Junior Member
Karma: 0
Offline
Posts: 10
TCssDropDownMenuv0.4.2
«
Reply #45 on:
Aug. 09, 2005, 10:08:06 AM »
In case this is useful for anyone, I resolved the problem with TDatePicker appearance by doing the following:
1. Renamed the .nav class in cssdropdownmenu-horizontal_class.css to .menu (the same should be done in cssdropdownmenu-vertical_class.css if you're using vertical menus)
2. Changed the CSS class of the menu in the template to "menu":
Code:
<com:TCssDropDownMenu ID="MainMenu" CssDirectory="js/cssdropdownmenu/css"
CssHorizontalFile="cssdropdownmenu-horizontal_class.css" Horizontal="true" CssClass="menu"
TopParentNodeCssClass="" ParentNodeCssClass="parent" NodeCssClass="node">
Basically, the problem was caused by a CSS class name clash.
Logged
Regards
Alex.
jake
Platinum Member
Karma: 13
Offline
Posts: 898
TCssDropDownMenuv0.4.2
«
Reply #46 on:
Aug. 26, 2005, 02:04:29 AM »
I seem to have a problem with this when being logged in it does not show the items in my menu anymore just a blank bar but when I log out they appear? Has anyone incountered something similar to this? :shock:
Logged
jake
Platinum Member
Karma: 13
Offline
Posts: 898
TCssDropDownMenuv0.4.2
«
Reply #47 on:
Aug. 27, 2005, 04:39:28 AM »
*bump*
Logged
alexkorban
Junior Member
Karma: 0
Offline
Posts: 10
TCssDropDownMenuv0.4.2
«
Reply #48 on:
Aug. 28, 2005, 07:36:08 AM »
Could you post a small piece of sample code demonstrating the problem? It's not clear from your post what the problem is.
Regards
Alex.
Logged
Regards
Alex.
rolf1001
Junior Member
Karma: 0
Offline
Posts: 40
TCssDropDownMenuv0.4.2
«
Reply #49 on:
Aug. 28, 2005, 11:52:14 AM »
Quote
I seem to have a problem with this when being logged in it does not show the items in my menu anymore just a blank bar but when I log out they appear? Has anyone incountered something similar to this?
I had a similar problem. This component uses roles, but my application didn't. So i had to adjust isInRole() of my user class.
Maybe this helps,
Rolf
Logged
jake
Platinum Member
Karma: 13
Offline
Posts: 898
TCssDropDownMenuv0.4.2
«
Reply #50 on:
Aug. 31, 2005, 01:49:37 AM »
Quote from: rolf1001
Quote
I seem to have a problem with this when being logged in it does not show the items in my menu anymore just a blank bar but when I log out they appear? Has anyone incountered something similar to this?
I had a similar problem. This component uses roles, but my application didn't. So i had to adjust isInRole() of my user class.
Maybe this helps,
Rolf
Cool thanks that was the problem
Logged
standalone
Junior Member
Karma: 1
Offline
Posts: 46
Unique means being creative, enovative n positive
$this->IsPostBack
«
Reply #51 on:
Dec. 03, 2005, 09:07:10 AM »
hei.. thanks for the component. but i have a problem here....
when the page is $this->IsPostBack = true then the component seems to be lost its javascript some where.
it goes back to old UL and LI style again, without javascript. how do you overcome this??
Logged
<?xml version="1.0" encoding="UTF-8"?>
<profile>
<id>StandAlone</id>
<yim>no_limit_satisfaction</yim>
<gim>lhutfhy</gim>
<location>Indonesia</location>
<url>standalone.blogsome.com</url>
</profile>
tanhs
Senior Member
Karma: 2
Offline
Posts: 169
TCssDropDownMenuv0.4.2
«
Reply #52 on:
Dec. 20, 2005, 02:24:29 AM »
Hi,
Are there anyone know how to dynamically add top menu and submenu programatically without any contentplaceholder like the following tpl ?
For example, if I would like to add a new top level menu after "Home", let says, "User", then later, I would like to add a "Logout" under the "User" programatically how is this being achieve.
Tq.
menu.tpl
Code:
<com:TCssDropDownMenu
ID="MainMenu"
CssDirectory="/paku/3rdparty/prado-addin/TCssDropDownMenu/js/cssdropdownmenu/css"
JsDirectory="3rdparty/prado-addin/TCssDropDownMenu/js/cssdropdownmenu"
CssHorizontalFile="cssdropdownmenu-horizontal_class.css"
Horizontal="true"
CssClass="nav"
TopParentNodeCssClass=""
ParentNodeCssClass="parent"
NodeCssClass="node">
<com:TCssDropDownMenuNode ID="Home" Text="Home" LinkUrl="index.php" />
</com:TCssDropDownMenu>
Logged
tanhs
Senior Member
Karma: 2
Offline
Posts: 169
TCssDropDownMenuv0.4.2
«
Reply #53 on:
Dec. 20, 2005, 02:35:19 AM »
Hi,
Nevermind, I got it solved.
Code:
$menuNode = $this->createComponent('TCssDropDownMenuNode');
$menuNode->setText('User');
$this->MainMenu->addBody($menuNode);
$menuNode1 = $this->createComponent('TCssDropDownMenuNode');
$menuNode1->setText('Logout :: '.$user->getUserId());
$menuNode1->setLinkURL('?page=LogOff::OnLogOff');
$menuNode->addBody($menuNode1);
Logged
FragMaster B
PRADO Supporter
Senior Member
Karma: 6
Offline
Posts: 229
TCssDropDownMenuv0.4.2
«
Reply #54 on:
Jan. 03, 2006, 04:40:22 PM »
Great component!
I'm having trouble getting it to redraw from viewstate tho. What am I doing wrong? Other elements on the same page make it through a postback but this menu doesn't.
Code:
public function onLoad($param){
parent::onLoad($param);
if (!$this->IsPostBack()){
//Construct globalNav menu.
$globalNavNode = array();
$globalNavNode['root'] = $this->createComponent('TCssDropDownMenuNode');
$globalNavNode['root']->setText(' ');
$navList = $this->getGlobalNavList();
foreach ($navList as $key=>$val){
$globalNavNode[$key] = $this->createComponent('TCssDropDownMenuNode');
$globalNavNode[$key]->setText($val['display']);
$globalNavNode[$key]->setLinkUrl('index.php?page='.$key);
$globalNavNode[$val['parent']]->addBody($globalNavNode[$key]);
}
$this->globalNav->addBody($globalNavNode['root']);
}
}
Code:
<com:TCssDropDownMenu ID="globalNav"
JsDirectory="_components/tcssdropdownmenu"
CssDirectory="_components/tcssdropdownmenu"
CssHorizontalFile="cssdropdownmenu-horizontal_class.css"
JsFile="cssdropdownmenu.js"
CssClass="nav"
TopParentNodeCssClass="rootNode"
ParentNodeCssClass="parentNode"
Horizontal="true" />
Logged
jasonpeng
Junior Member
Karma: 0
Offline
Posts: 15
TCssDropDownMenuv0.4.2
«
Reply #55 on:
Jan. 25, 2006, 10:24:31 AM »
Quote from: alexkorban
In case this is useful for anyone, I resolved the problem with TDatePicker appearance by doing the following:
1. Renamed the .nav class in cssdropdownmenu-horizontal_class.css to .menu (the same should be done in cssdropdownmenu-vertical_class.css if you're using vertical menus)
2. Changed the CSS class of the menu in the template to "menu":
It solved my problem on FireFox, but the same page content TDatePicker & TCssDropDownMenu, There still have problem on IE. It wont pupup the second level when I use vertical class menu.
Here is the tpl code
Code:
<com:TContentPlaceHolder ID="tree">
<com:TCssDropDownMenu ID="MainMenu" CssDirectory="../framework/js/cssdropdownmenu/css" CssVerticalFile="cssdropdownmenu-vertical_class.css" Horizontal="false" CssClass="cssmenu" TopParentNodeCssClass="parent" ParentNodeCssClass="parent" NodeCssClass="node">
<com:TCssDropDownMenuNode ID="User" Text="Profile" LinkUrl="index.php?page=User:Update"/>
<com:TCssDropDownMenuNode ID="Results" Text="Results" >
<com:TCssDropDownMenuNode ID="Import" Text="Import" LinkUrl="index.php?page=Result:Import" />
<com:TCssDropDownMenuNode ID="Search" Text="Search" LinkUrl="index.php?page=Result:Search" />
</com:TCssDropDownMenuNode>
</com:TCssDropDownMenu>
</com:TContentPlaceHolder>
Please help.
Thanks.
Logged
schmunk
PRADO Supporter
Platinum Member
Karma: 17
Offline
Posts: 505
Google Ron Paul
TCssDropDownMenuv0.4.2
«
Reply #56 on:
Feb. 13, 2006, 01:35:58 AM »
Hi there,
are there any plans for a PRADO v3 release for this component?
I am trying to port it to v3 at the moment, but I am stuck
PS: This is a superb piece of code!
Logged
lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
intol
Senior Member
Karma: 6
Offline
Posts: 161
TCssDropDownMenuv0.4.2
«
Reply #57 on:
Feb. 13, 2006, 09:19:55 AM »
I also need this component in PRADO v3. Could someone convert it?
Logged
*
EIOBA
- Social Article Submissions Built Using Prado PHP Framework
*
PRADO performance tuning for high-traffic web applications
schmunk
PRADO Supporter
Platinum Member
Karma: 17
Offline
Posts: 505
Google Ron Paul
TCssDropDownMenuv0.4.2
«
Reply #58 on:
Feb. 15, 2006, 02:54:26 AM »
Hi guys,
first: I don't wanna steal someones credits.
I just ported the TCssDropDownMenu to PRADO v3
and named it LCssDropDownMenu.
@skot: Let me know if you will maintain a v3 version of this component. Feel free to take the code, if so. Or otherwise I'll do some more coding.
second: This is very rough and alpha at the moment, but works ... currently without user integration, vertical mode, and IE support (I changed the css). The menu is called in the Home.page taken from the demos.
The scripts and stylesheets are included via the AssetManager, so this should be really pluggable - on the other side, it should have an option to specify the css via a relative path.
I also have a database integration with propel ready for the v3 ... more soon.
Please give me some feedback about the component.
Logged
lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
schmunk
PRADO Supporter
Platinum Member
Karma: 17
Offline
Posts: 505
Google Ron Paul
Re: TCssDropDownMenuv0.4.2
«
Reply #59 on:
Jul. 02, 2006, 04:40:13 PM »
Component for PRADO v3 continued here:
http://www.pradosoft.com/forum/index.php/topic,5011.msg22463.html#msg22463
Logged
lithron & phundament - components for PRADO 3
http://sourceforge.net/projects/lithron
http://www.phundament.com
Pages:
1
2
3
[
4
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Prado-powered Applications
=> Prado International
===> Chinese
===> Dutch
===> French
===> German
===> Indonesian
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Spanish
=> Job Opportunities
-----------------------------
Prado v3.x
-----------------------------
=> General Discussion
===> Active Controls (Ajax)
===> Database
===> JavaScript
===> General PHP Topics
===> PRADO Extension
=> Installation and Setup
=> Feature Requests
=> Bug Reports
=> Tips, Snippets and Tutorials
===> Screencasts
=> Component Repository
-----------------------------
Prado-related Projects
-----------------------------
=> PRADO Community Project
=> PetShop Project
=> Entity framework
=> IDE/Editor for Prado
-----------------------------
Prado v2.x
-----------------------------
=> General Discussion
===> Installation and Setup
===> Active Controls (Ajax)
===> Feature Requests
=> Bug Reports
=> Tips, Snippets and Tutorials
=> Component Repository
-----------------------------
Beyond Prado
-----------------------------
=> Miscellaneous
Terms of Service
|
Contact Us
Copyright © 2006-2012 by the PRADO Group.
Powered by SMF 1.1.15
|
SMF © 2006, Simple Machines