# breaking a section between two pages

I have a document with below Section command, if the size of items inside the section increase to more than a page it moves the whole section to next page, but I want to break the section between two pages, any hint?

\renewcommand*{\section}[1]{%
\phantomsection{}% reset the anchor for hyperrefs
\parbox[t]{\hintscolumnwidth}{\strut\raggedleft\raisebox{\baseletterheight}{\color{color1}\rule{\hintscolumnwidth}{0.95ex}}}%
\hspace{\separatorcolumnwidth}%
\parbox[t]{\maincolumnwidth}{\strut\sectionstyle{#1}}%

• What are you trying to accomplish with this redefinition? It seems like you are renewing to almost the exact definition of \section with moderncv's classical style... – cslstr May 25 '14 at 19:16
• OK - so back to my first comment: Can you post a MWE that shows the issue you are having? I cannot recreate the problem with moderncv/classic, with or without your renewcommand. – cslstr May 25 '14 at 19:26
• @user52412: You're clearly using \section incorrectly, as you're setting the argument into a fixed-width box (a \parbox that doesn't break across the page boundary). Typically only the title (or heading) should form part of the section macro, with the remaining elements set outside the macro so there's no restriction in terms of page breaking. – Werner May 25 '14 at 19:33
I used below workaround: I need to find on which item the page need a break so on that item I ended the \cventry and started a new \cventry with blank parameters like: \cventry{}{}{}{}{}{ \begin{itemize}
\newpage will break a section between \cventrys, but as @user52412 points out if you want to page break across a \cventry you need to split the entry into two (the second with empty opening fields).