EzDevInfo.com

ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour. ImpressPages - PHP framework with content editor (just drag&drop)

How do I pull in page's "url path" field, via php, into the theme?

I'm trying to apply the page's url as a <div> id to be able to target some css on each individual page. After some characters cleanup I'm hoping to get <div id="test-page">.

I have tried pulling it in from the object that I get via

ipContent()->getBreadcrumb()

Unfortunately they are all (including one I need) protected and cannot be echoed out.

[urlPath:protected] => test-page/

Is there a function that I've missed and can use to pull that in? Or a proper method of getting it from the object? Cheers.


Source: (StackOverflow)

Plugin Submenu Admin

How do you create Submenu items for a plugin.

I've checked System Module, That have Submenu class, and Filter on Admin. Is this possible without hacking or Overriding class.

Thanks.


Source: (StackOverflow)

Advertisements

How to override ip admin login template?

How to override ip admin login layout?

I created the file 'Theme/Air/override/Ip/Internal/Admin/view/loginLayout.php

but this solution doesn't work.


Source: (StackOverflow)

How to disable the CSRF function in Impresspages forms?

I wish to know how to disable the CSRF function in Impresspages forms. I'm building a custom made form which do not use the form builder of Impresspages but on form submit, I get the following error:

{"status":"error","errors":{"securityToken":"Possible CSRF attack...

Can someone tell me where to add the CSRF disable function.


Source: (StackOverflow)

Adding a table in impresspages cms 4

I was using an older version for one client but when I installed a new setup on 4.x I noticed when editing the page content, there is no option for a table? Is this no longer supported? Thanks


Source: (StackOverflow)

How to translate the search plugin from impresspages 4.0?

Is there a way to translate the search plugin from impresspages version4.0? The form label and form button are still in EN, in my case is need DE.


Source: (StackOverflow)

Portfolio widget IMPRESSPAGES

For some reason the portfolio plug in doesn't work properly in google chrome, unless I hit the "all" tab then you can see the full images. Could anyone help or guide me on how to fix this.

I have also emailed the developer and I haven't heard a reply yet, I need to know asap because I am on a tight schedule. Hope you understand Thanks laura


Source: (StackOverflow)

How do I move the Impress Pages widget editor to the middle of my screen?

Anytime I use a widget editor it opens up with only a small portion of the editor showing on the left side or my screen. I have tried to drag it to the middle with no success. What am I missing?


Source: (StackOverflow)

change default gallery image size on impresspages

i try to change the default gallery size over the theme.json , but the result always same (square size picture like 200 x 200 px)

"imageGallery": { /* For responsiveness and optimization it should the size as it would appear on the widest block */
            "width": 295,
            "height": 164
        }

"gallery": { /* For responsiveness and optimization it should the size as it would appear on the widest block */
                "width": 200,
                "height": 164
            }

i using the new version of ip 4.4.0 , i dont have this pb in old version.

So how i can change the default gallery image size ? and which variable true "imageGallery" or "gallery" ?


Source: (StackOverflow)

Overwrite CSS in an additional file?

Is there a way to overwrite CSS definitions in an additional file (similar to the concept of child themes of WordPress)?


Source: (StackOverflow)

Bug when adding logo to the title in ImpressPages

I have tried to add logo to my impresspages, instead of default title. However after I uploaded logo into "Image logo" section of the title, it showed it black. Now I cannot change it: whenever I go to "Image Logo" section it is empty: no image selection buttons, nothing. Obviously it is some kind of bug, but how can I revert it back now? Do I have to reinstall ImpressPages?


Source: (StackOverflow)

Multiple widget intances on ImpressPages 4.x

I created new widget that generate sample data. For examle:

ContactWidget named widget makes contact template:

Plugin/ContactWidget/Widget/ContactWidget/skin/default.php

<?php $random_id = rand(100, 999); ?>
<div class="iconbox">
    <h4>
        <?php echo ipSlot('text', array('id' => 'contact_'.$random_id.'_title', 'default' => 'Title')); ?>
    </h4>
    <?php echo ipSlot('text', array('id' => 'contact_'.$random_id.'_desc', 'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pharetra, erat commodo fringilla consequat, urna velit ultrices orci, vel tincidunt risus ex in nisl.', 'tag' => 'p')); ?>
</div>

I used random() because of should be unique id. But when i refresh the page, missing all data.

How can i generate widget multiple instances with editable Slots


Source: (StackOverflow)

Not able to convert vertical scrolling example to version 4

I tried it for a couple of days but I seem to be too stupid to adopt the vertical scrolling website example from the blog here:

http://www.impresspages.org/blog/creating-a-vertical-scrolling-website/

I already get stuck with changing the content rendering and creating a V4-compatible foreach part from the first code block:

/* SHOW ALL PAGES IN ONE */ 
if ($site->managementState() || $site->getCurrentZone()->getName() != 'menu1') {
  echo $site->generateBlock('main');
} else {
  $pages = $site->getZone('menu1')->getElements();
  foreach($pages as $pageKey => $page) {
    echo '<div class="scrollblock">';
    echo '<div id="page_'.$page->getId().'">';
    $publishedRevision = \Ip\Revision::getPublishedRevision('menu1', $page->getId());
    echo \Modules\standard\content_management\Model::generateBlock('main', $publishedRevision['revisionId'], $site->managementState());
    echo '</div>';
    echo '</div>';
  }
}
/* EOF SHOW ALL PAGES IN ONE */ 

Can anybody help me with this? I am pretty lost compared to Typo3 which I normally use.

Thank you and best regards,

doc


Source: (StackOverflow)

ImpressPages 4 grid field to upload file to a temp folder instead of repository

I created a plugin for IP 3.9 to upload videos to encoding.com and convert them to mp4 so users would not have to worry about the format of the videos to use in their html5 sites.

In the previous version of ImpressPages I used the element_file of the ItemsArea class to upload the original videos to a temp folder, once the video was encoded I would put it in the Repository so it is available to the users for embedding using a widget.

In the new Impress Pages 4 Grid class the element_file was replaced for the RepostoryFile field and it directly uploads the file to the main Repository (does not let you choose the destination), which makes the non-encoded video to be available to the user.

Is there a way to override this behaviour without modifying the core files?

or is there a way to tell the repository not to show this files until they are encoded (like a visibility flag)?

or can I create a custom field type from a plugin?


Source: (StackOverflow)

Render page from plugin controller

Is it possible to render an existing page from my plugin controller?

Something like:

ipContent()->getPage($id)->render() 

Source: (StackOverflow)