How do I create a lightbox in AppDrag? - youtube

I would like to have a Youtube video play in lightbox format. Is there a way to achieve that using the AppDrag CMS editor?

First create a new page in your project.
Keep the page format as a landing page, removing thus the header/footer.
in the new page, click on the "+" button on the left then click on ELEMENTS > Medias and Drag a youtube element into the blank section and remove the placeholder text there.
Right click on the section containing the video, click on SECTION > Edit > Position and there check the "full height" checkbox.
Go back to your original page.
Open the button you would like to use to trigger the video, and select the Link tab.
Scroll to Website Page -> select the page you have created earlier.
Then a bit lower, still in the Link tab, select "Open in -> Modal".

Related

Menu static - content below - in tabs?

I'm new to electron and some principles, concept of doing things in it.
For now i created a window, with a index.html inside and the standard main.js and the bootstrap css. Here is what I've done so far: Image
Now I'm getting to the point "what to do now to get the content when clicking on the links in the menu?"
The main goal is a menu at the top and load content from different websites below that menu.
I don't get how to load that content (maybe in tabs?)?
The best would be not to load the content twice, if someone clicked on that menu points at the top. So if once clicked to Calendar the calendar should not opened a second time, instead it should jump to the according tab. Content should be scrollable while the menu should stay at the top.
What's the way to go here? Tabs? Is the idea even possible?

How to realize the automatic jump to the specified page

i want to do a function,that is in page-based,i add a button,when i click the button,pop-up a Select box.In the selected box input the page number,but how can i realize that when i input the page number,the page jump to the specified page
edit:
I want to do a calendar,the label title bar in the top i have used button,now,it is that when i press the button,it will pop up a marquee,in there have month.now ,i want to press a month in the press box,then turn to the corresponding page.

Cannot detect Frontpage properly in Joomla 2.5 templates

I've seen in Joomla documentation the way to detect if you are in Frontpage while creating a template in Joomla 2.5. This is the code:
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault()) {
echo 'This is the front page';
}
?>
This works when you are at home page (or clicking on Home menu), but I have an slider in home page, and I link in the slider to an article which is not in any menu item in the application. When I load this article the code above returns as I were at frontpage. I guess that if I doesn't click on any menu item, $menu->getActive() doesn't change.
Any suggestion?
Thanks in advance.
You can do one thing to solve this problem. Create a hidden menu of all the article links which are linked in the sliders.By creating hidden menu the link will be initialized and $menu->getActive() will work for all the links..Hopefully it will works for you .
I wish to add to the present answer and provide some clarifications.
In order for the menu selection to be detected the page requires to be assigned to a menu item. If this is a hidden menu than the link to such a page called My Page would be:
/index.php/my-page - “my-page” is the menu title alias for this item
However, if one wants to show the correct hierarchy in the breadcrumbs for the same page, then the menu hierarchy would have to be replicated in the hidden menu.
For example if My Page is under My Articles main menu item, then in the hidden menu you should add “My Articles” item, of the type: Menu Item Alias, which is in the Systems submenu of the menu type field. The My Page item should be a sub-menu item of My Articles.
The “My Articles” menu item in the hidden menu must have a different menu alias than the same one in the main menu hence the new link to My Page would look like:
/index.php/my-articles2/my-page
To create a hidden menu, one simply creates another menu. It does not matter whether one creates a module for it or not, but if one does then one just should not assign any position to that module.

Unable to edit content using admin part

I have to support a website developed in umbraco. I am totally new to this and this is am working on this for the very first time. My requirement is very straight-I need to edit the content of a webpage. When I too the page it opened with two tabs - Main Content and Properties. In the main content tab I can edit the Title, Banner image, Content header etc, but not the content of the page. It doesn't give any rich textbox to edit the content. I have uploaded the view of one of the page.
I need urgently need to edit the content.Please help with this.
The screenshot implies that the content should be under the "Content" headline in the right screen, but depending on how the documenttype for the frontpage i created, the content could be made up by sub nodes. try folding out the tree to see.
If it dos-nt make sence you can see what documentype a node is made on and what template it uses to display it by clicking the Properties tab. Then go to the Settings Tab in the bottom and see what that documenttype contains and how its displayed in the template

Addon toolbar - create button to show back button history?

I have a toolbar and want to create a button that will display a drop down list of the back button history which the user can select and go back to that page.
Check the Firefox source to see how it's implemented. Open source and all that.
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.xul#507
http://mxr.mozilla.org/mozilla-central/

Resources