Giter Site home page Giter Site logo

onepagewebsite's Introduction

OnePageWebsite

About

Contao extension to create a one page website structure with regular pages

This extension brings the following features:

  • Frontend modules to create the page structure with a reference page or with a custom page selection
  • Navigation module to navigatio through the sites with anchors
  • Mootools template to initialize mooSmoothScroll

onepagewebsite's People

Contributors

infusion avatar timgatzky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

onepagewebsite's Issues

CSS wird nicht gefunden

Wenn die Installation nicht in der Domainroot liegt, wie z.B. bei Contao2Go, dann wird die onepagewebsite.css nicht gefunden.
Grund ist, dass in den Templates mod_onepage.* der CSS-Pfad mit '/system/..' beginnt.
Der / vor system muss weg.

Ich denke, dass auch im assets-Verzeichnis noch eine .htaccess rein muss, die den Zugriff erlaubt, siehe im Core-Modul newsletter/assets/.

Gruß, Hagen

Geschütze Seiten / Nur für Gäste anzeigen

Hi, ich kann leider keinen Pull-Request erstellen. Ich habe die Erweiterung ergänzt, damit geschützte Seiten und Seiten für Gäste überprüft/deaktiviert werden.

Datei: system/modules/onepagewebsite/OnePageWebsite/OnePageWebsite.php, Zeile 182

$this->import('FrontendUser', 'User');

if($objSubpages->protected && $objSubpages->groups) {

    if(!array_intersect((array)$this->User->groups, unserialize($objSubpages->groups))) {
        continue;
    }       
}

if(FE_USER_LOGGED_IN && $objSubpages->guests) {
    continue;
}

Custom Page Layout not applied to One-Page Ref. page

Contao: 3.5.9
onepagewebsite: 2.2.2

Structure:

- Startpunkt der Webseite (Standard Layout)
--- Home mit OPW-Modul (Standard Layout)
----- One Page Referenz-Seite (versteckt) (Abgespecktes Layout)
------- Seite 1
--------- Seite 1.1
------- Seite 2
------- Seite 3
------- usw...

OP reference page is given its own page layout (reduced with only article), but it always grabs layout from the root page (Startpunkt der Webseite).

generatePage wrapper-Methode

Hallo

Es geht um die Klasse OnePageWebsite. In der Methode 'generatePage' wird 'generatePagesRecursiv' aufgerufen. Dabei wird das 3. Argument ($strTemplate) gleich wieder mit dem leeren String überschrieben, es ist also von aussen nicht möglich, ein anderes Template zu wählen. Denke das war so nicht beabsichtigt...?

mfg

PS: Danke für das Modul übrigens, sehr praktisch. Muss es für meine Bedürfnisse etwas anpassen, darum fällt mir die eine oder andere Kleinigkeit auf ;-)

getPageLayout

In Contao2.11-Version (don't know about Contao3), Method OnePageWebsite::getPageLayout() I guess you're trying to fetch the layout of the page defined by the argument $intPage. The sql of lines 275 to 277 currently uses $objPages->id instead...
which caused an infinite loop in my installation... Thanks for fixing

full-width pages break the 'scroll' event for the menu

When using a full-width layout on your page, the OnePageWebsite Menu will always put the active state on the last page when you start to scroll.

This is because the deltaX and breakPointX variables in the JavaScript code will always be 0 in such a case, for each page element. Thus the code wants to put active on every menu item (which results in the last item having the active state at the end).

See also https://community.contao.org/de/showthread.php?37832-OnePageWebsite-Eine-one-page-Website-Struktur-mit-der-Seitenstruktur-erstellen&p=312016&viewfull=1#post312016 (and next post)

skipNavigation variables aren't available in template

The ModuleOnePageWebsiteNavigation::compile() needs two additions:
$this->Template->skipId = 'skipNavigation' . $this->id; $this->Template->skipNavigation = specialchars($GLOBALS['TL_LANG']['MSC']['skipNavigation']);
Otherwise the html output looks like this:
<a href="#" class="invisible"></a> <a id="" class="invisible">&nbsp;</a>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.