London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Per Nergård (MVP)
Mar 24, 2014
  2927
(1 votes)

FPWC and blocks

A while ago I needed to implement a module that simplified should find pages, where a certain person was set as responsible, and do stuff to them. A responsible person corresponds to a page reference value stored in a localblock page reference property on each page.

Ok never tried FPWC with blocks so I Googled and found Alf Nilsson’s excellent post on the subject. Seemed simple enough so I went on and implemented the module but when I started to test it I couldn’t get it to work. 

I quickly narrowed it down to the FPWC call which for some reason didn’t return any hits. At first I thought I hade done some simple typo error when creating the criteria but no.

After a bit to much time debugging I found out that the problem was that the page reference property I was searching for was placed in a block.

I reported it to the support which first confirmed it as a bug but later canceled the bug as this behavior was by design. The reason is that FPWC hasn’t been refactored to support new content types. In Alfs blog post he searches for a string property and this actually works but this is not intended behavior.

So If you in the beginning of a project have known functions that you plan to solve by FPWC and page reference properties it might be best to avoid placing those page reference properties in a block.

Mar 24, 2014

Comments

Please login to comment.
Latest blogs
Optimizely Product Recommendation Troubleshooting

In today’s fast-paced digital landscape, personalization is everything . Customers expect relevant, tailored experiences whenever they interact wit...

Sanjay Kumar | Apr 28, 2025

Natural Language Q&A in Optimizely CMS Using Azure OpenAI and AI Search

In Part 2, we integrated Azure AI Search with Azure Personalizer to build a smarter, user-focused experience in Optimizely CMS. We used ServiceAPI ...

Naveed Ul-Haq | Apr 25, 2025 |

Identifying Spike Requests and Issues in Application Insights

Sometimes within the DXP we see specific Azure App Instances having request spikes causing performance degredation and we need to investigate. I fi...

Scott Reed | Apr 25, 2025

Optimizely Frontend Hosting Beta – Early Thoughts and Key Questions

Optimizely has opened the waitlist for its new Frontend Hosting capability. I’m part of the beta programme, but my invite isn’t due until May, whil...

Minesh Shah (Netcel) | Apr 23, 2025

Developer Meetup - London, 21st May 2025

The London Dev Meetup has been rescheduled for Wednesday, 21st May and will be Candyspace 's first Optimizely Developer Meetup, and the first one...

Gavin_M | Apr 22, 2025

Frontend hosting for PaaS & SaaS CMS

Just announced on the DXP, we FINALLY have a front end hosting solution coming as part of the DXP for modern decoupled solutions in both the PaaS a...

Scott Reed | Apr 22, 2025