Coder Social home page Coder Social logo

Comments (6)

jgautheron avatar jgautheron commented on June 15, 2024

Another simpler solution.
Since I can prefix my user generated blocks, extending the block names ignore with expressions would help, by example:

top.links,
cart_sidebar,
right.reports.product.viewed,
catalog.compare.sidebar,
myblockprefix_*

from lesti_fpc.

GordonLesti avatar GordonLesti commented on June 15, 2024

Hello Jonathan,
did I understand you right? You have blocks that aren't generated by layout.xml's? And you would like to make them dynamic, cause the blocks have user-specific content? How did you generate the blocks, over a parent block or over a controller, or...?

from lesti_fpc.

jgautheron avatar jgautheron commented on June 15, 2024

Hi, yes they aren't included via layout.xml (even though we can include these blocks via layouts), these blocks are mostly generated via the admin panel then included in CMS pages via widgets. These blocks do not have defined names (anonymous_28) by example.

from lesti_fpc.

GordonLesti avatar GordonLesti commented on June 15, 2024

Ah ok. Maybe we can add a checkbox to widgets. And this checkbox makes the widget/block dynamic.

from lesti_fpc.

jgautheron avatar jgautheron commented on June 15, 2024

Yes that could be a solution.
When a widget is configured to do so, a few actions over products are limited if the user is not logged in, by example an user who is not logged in won't be able to click the "download" button but instead it will show a popover, that kind of thing.

from lesti_fpc.

GordonLesti avatar GordonLesti commented on June 15, 2024

A tested it in the last week. And I'm sorry, but it's impossible to make widgets dynamic per default. The problem is, that Fpc has no information about widget/block, cause the information about widget/block are in cms-model. And the sense of Fpc is not to load cms-model. But I guess you can give {{widget name_in_layout="your_blockname" }} to widget and make "your_blockname" dynamic in Fpc. You only have to add this widget per layout.xml so that it doesn't show on first request.

from lesti_fpc.

Related Issues (20)

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.