Excluded page parts

Post Reply
kaosnews
Posts: 13
Joined: 21 Sep 2017, 15:38

Excluded page parts

Post by kaosnews » 15 Dec 2018, 15:58

I'm trying to understand this option (Excluded page parts) - but I don't really knows how to use it. For example there is a page with:

header (using <header></header>)
content block (using <div id="contentblock"></div>)
sidebar (using <div id="sidebar"></div>)
and footer (using <footer></footer).

I only want to look in the content block but not in the header/footer and sidebar. How do I use the Excluded page parts?

kaosnews
Posts: 13
Joined: 21 Sep 2017, 15:38

Re: Excluded page parts

Post by kaosnews » 17 Dec 2018, 11:55

Ok, I understand the option. I looked at some projects using the 'excluded page parts' - it's really very simple :)

Maxim
Site Admin
Posts: 992
Joined: 02 Mar 2009, 17:02

Re: Excluded page parts

Post by Maxim » 18 Dec 2018, 13:22

If you want EPF to parse only one part of the page, then I suggest excluding everything before and after that part. In your case I'd use 2 "Excluded page parts" like this:

From: EMPTY
To: <div id="contentblock">

From: <div id="sidebar">
To: EMPTY

Empty "from" field means "beginning of the page". Empty "To" field means the "end of the page".

Post Reply